Skip to content

Commit 2f63fb4

Browse files
committed
docs(tools): scope the job rule to asynchronous executions, not synchronous read-only queries
1 parent 1bced8d commit 2f63fb4

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎.agents/skills/add-tools/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ Labelling a write `read` is the one unsafe mistake, so classify from the provide
194194
semantics, never the name alone.
195195

196196
`read` means the call changes nothing outside Sim: no create, update, delete, send, post, trigger,
197-
enqueue, consume, or mark-read; starts no provider job or query, even a short-lived one; leaves no
198-
run, conversation, history item, or other resource in an account; no contact data revealed for credits; no external delivery. Usage billing for the call
197+
enqueue, consume, or mark-read; starts no asynchronous provider job or query execution (one with its own id that
198+
can keep running), even a short-lived one; a synchronous read-only query is fine; leaves no run, conversation, history item, or other resource in an account; no contact data revealed for credits; no external delivery. Usage billing for the call
199199
itself does not count. `write` is anything else.
200200

201201
**Contact reveals:** revealing a person's contact data (email, phone) for credits is `write`: an

‎apps/docs/openapi-v2-resources.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21950,7 +21950,7 @@
2195021950
"effect": {
2195121951
"type": "string",
2195221952
"enum": ["read", "write"],
21953-
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no provider job or query started, even a short-lived one; no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
21953+
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no asynchronous provider job or query execution started (one with its own id that can keep running, even briefly; a synchronous read-only query is fine); no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
2195421954
},
2195521955
"hostedApiKey": {
2195621956
"type": "string",
@@ -22676,7 +22676,7 @@
2267622676
"effect": {
2267722677
"type": "string",
2267822678
"enum": ["read", "write"],
22679-
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no provider job or query started, even a short-lived one; no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
22679+
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no asynchronous provider job or query execution started (one with its own id that can keep running, even briefly; a synchronous read-only query is fine); no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
2268022680
},
2268122681
"hostedApiKey": {
2268222682
"type": "string",
@@ -32969,7 +32969,7 @@
3296932969
"additionalProperties": {
3297032970
"type": "string",
3297132971
"enum": ["read", "write"],
32972-
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no provider job or query started, even a short-lived one; no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
32972+
"description": "What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no asynchronous provider job or query execution started (one with its own id that can keep running, even briefly; a synchronous read-only query is fine); no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
3297332973
}
3297432974
},
3297532975
"dynamicOutputs": {

‎apps/sim/lib/api/contracts/v2/catalog.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ const v2HostedApiKeySchema = z
414414
export const v2ToolEffectSchema = z
415415
.enum(['read', 'write'])
416416
.describe(
417-
"What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no provider job or query started, even a short-lived one; no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
417+
"What running the tool does outside Sim. `read` changes nothing there: no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no asynchronous provider job or query execution started (one with its own id that can keep running, even briefly; a synchronous read-only query is fine); no run, conversation, history item, or other resource left in an account; no contact data revealed for credits; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read`."
418418
)
419419

420420
const v2ToolOAuthSchema = z.object({

‎apps/sim/tools/types.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ export interface ToolParameterItemSchema {
229229
/**
230230
* What running a tool does outside Sim. `read` means the call changes nothing outside Sim: it
231231
* creates, updates, deletes, sends, posts, triggers, enqueues, consumes, and marks read nothing,
232-
* starts no provider job or query (even a short-lived one), leaves no run, conversation, history
233-
* item, or other resource in an account, reveals no
232+
* starts no asynchronous provider job or query execution (one with its own id that can keep
233+
* running, even briefly; a synchronous read-only query is fine), leaves no run, conversation,
234+
* history item, or other resource in an account, reveals no
234235
* contact data for credits, and delivers nothing elsewhere. Usage billing for the call itself does
235236
* not count. `write` is anything else, including an effect that depends on the params.
236237
*

0 commit comments

Comments
 (0)