You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be60cfa
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tools): relabel contact reveals, RTR commands and mssql query as writes
Revealing a person's contact data (email, phone) for credits is `write`;
company/firmographic lookups and verifications that only spend lookup
credits are `read`. ToolEffect, the v2 catalog schema (and OpenAPI),
check:tool-effects, the add-tools, add-integration, and
validate-integration skills, and CLAUDE.md now state it that way.
37 contact reveals move to write: Prospeo, ZoomInfo, Findymail, LeadMagic,
Datagma, Dropcontact, Enrow, and Hunter email/phone finders and person
enrichment, Hunter domain search, Firecrawl enrich, and the Enrich, RB2B,
Sixtyfour, People Data Labs, and PitchBook person contact lookups. The 14
GET tools among them carry `// tool-effect:`.
crowdstrike_execute_rtr_command is write: the read-tier eventlog family
includes export and backup subcommands that write files on the host, and a
queue_offline session enqueues commands.
mssql_query is write: its only guard is the lexical read-only screen, with
no server-enforced read-only transaction. The screen now also rejects
NEXT VALUE FOR, which advances a sequence from inside a single SELECT.
oracledb_query is write too: its read-only transaction does not bind a
function with an autonomous transaction or a package such as UTL_HTTP
called from the SELECT.
Copy file name to clipboardExpand all lines: .agents/skills/add-integration/SKILL.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,9 +192,11 @@ neither calls the other. Follow the full transport and handler rules in the `add
192
192
193
193
Every tool declares `effect: 'read' | 'write'`. `read` means the call changes nothing outside Sim:
194
194
no create, update, delete, send, post, trigger, enqueue, consume, or mark-read; no job, run,
195
-
conversation, history item, or other resource left in an account; no credit-funded reveal; no
196
-
external delivery (usage billing for the call itself does not count). Anything else, anything that
197
-
depends on its params, and anything you are unsure of is `write`. Classify from the API docs you researched in Step 1; the full rules are in `add-tools` →
195
+
conversation, history item, or other resource left in an account; no contact data revealed for
196
+
credits; no external delivery (usage billing for the call itself does not count). Anything else,
197
+
anything that depends on its params, and anything you are unsure of is `write`. Revealing a
198
+
person's contact data (email, phone) for credits is `write`; company/firmographic lookups and
199
+
verifications that only spend lookup credits are `read`. Classify from the API docs you researched in Step 1; the full rules are in `add-tools` →
198
200
Declaring the effect, and `bun run check:tool-effects` enforces them.
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ Use the `test-audit` skill whenever you write, change, or review tests; mechanic
59
59
Build order **Tools** → **Block** → **Icon** → optional **Trigger**, from the service's API docs, using `/add-integration` (or `/add-tools`, `/add-block`, `/add-trigger`).
60
60
61
61
-**Tool IDs are `snake_case`** (`service_action`), registered in `tools/registry.ts`; blocks register alphabetically in `blocks/registry-maps.ts`.
62
-
-**Every tool declares `effect: 'read' | 'write'`**: `read` only when the call changes nothing outside Sim (no write, send, trigger, or consume, and no job, run, or other resource left in an account; usage billing aside); `write` otherwise, including param-dependent effects and anything uncertain (`check:tool-effects`; rules in `/add-tools`).
62
+
-**Every tool declares `effect: 'read' | 'write'`**: `read` only when the call changes nothing outside Sim (no write, send, trigger, or consume, and no job, run, or other resource left in an account; usage billing aside); `write` otherwise, including param-dependent effects and anything uncertain. Revealing a person's contact data (email, phone) for credits is `write`; company/firmographic lookups and verifications that only spend lookup credits are `read` (`check:tool-effects`; rules in `/add-tools`).
63
63
-**Type coercions go in `tools.config.params`** (runs at execution), never `tools.config.tool` (runs at serialization, where `Number()` destroys `<Block.output>` references).
64
64
-**Requests made for a workspace use `outboundFetch`** (`@/lib/core/network/outbound-fetch.server`), never the global `fetch` or another imported `fetch`, so an organization with a dedicated egress gateway keeps its static IPs; `check:organization-egress` enforces this, and a request that rightly goes direct (Sim's own infrastructure, an operator-local server) takes `// egress-direct: <reason>`. AWS SDK clients signing with customer credentials take `organizationAwsRequestHandler()`: no audit catches a missing one, so reviewers check it.
65
65
- A surface listing integrations to a viewer reads `useIntegrationAccess`, never a raw catalog (`check:integration-access`).
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-resources.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21950,7 +21950,7 @@
21950
21950
"effect": {
21951
21951
"type": "string",
21952
21952
"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 job, run, conversation, history item, or other resource left in an account; no credit-funded reveal; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input."
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 job, 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`."
21954
21954
},
21955
21955
"hostedApiKey": {
21956
21956
"type": "string",
@@ -22676,7 +22676,7 @@
22676
22676
"effect": {
22677
22677
"type": "string",
22678
22678
"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 job, run, conversation, history item, or other resource left in an account; no credit-funded reveal; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input."
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 job, 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`."
22680
22680
},
22681
22681
"hostedApiKey": {
22682
22682
"type": "string",
@@ -32969,7 +32969,7 @@
32969
32969
"additionalProperties": {
32970
32970
"type": "string",
32971
32971
"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 job, run, conversation, history item, or other resource left in an account; no credit-funded reveal; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input."
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 job, 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`."
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/catalog.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -414,7 +414,7 @@ const v2HostedApiKeySchema = z
414
414
exportconstv2ToolEffectSchema=z
415
415
.enum(['read','write'])
416
416
.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 job, run, conversation, history item, or other resource left in an account; no credit-funded reveal; no external delivery. Usage billing for the call itself does not count. `write` is anything else, including an effect that depends on the input.'
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 job, 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`."
'Run a read-only Real Time Response command in an open CrowdStrike Falcon session (POST /real-time-response/entities/command/v1). baseCommand names the family only (cat, cd, clear, csrutil, env, eventlog, filehash, getsid, help, history, ifconfig, ipconfig, ls, mount, netstat, ps, reg, users); subcommands go in commandString. Host-modifying commands need the Active Responder or Admin endpoints. Requires the "Real time response: Read" API scope.',
"Enrich a person's profile using their email, LinkedIn URL, or full name and company. Returns job title, company, location, and social data. Uses 2 credits per match; add 30 credits when a phone number is found.",
19
19
version: '1.0.0',
20
-
effect: 'read',
20
+
// tool-effect: the GET spends Datagma credits to reveal the person's email and phone
0 commit comments