crustdata-tool-selection

crustdata-tool-selection is a cursor rule for Cursor from crustdata/skills. It costs 37 tokens per session (1,077 once invoked), scanned A, original, MIT.

A usage guide for the Crustdata MCP server, a service that lets an agent search and retrieve company and people data. It explains which of the server's tools to use and how to write the required JavaScript.

In plain words
What is it for?
Use it when searching for companies or people, inspecting available data fields, or retrieving company details through Crustdata.
Why use it?
It helps avoid invalid requests, incorrect filters, failed calls, and unnecessary data charges. It also explains how to check errors safely.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when searching for companies or people, inspecting available data fields, or retrieving company details through Crustdata.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/crustdata/skills/crustdata-tool-selection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/crustdata/skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for crustdata-tool-selection

README.md
[![agentmods](https://agentmods.dev/badge/rules/crustdata/skills/crustdata-tool-selection/github.svg)](https://agentmods.dev/rules/crustdata/skills/crustdata-tool-selection)
Your own site
<a href="https://agentmods.dev/rules/crustdata/skills/crustdata-tool-selection"><img src="https://agentmods.dev/badge/rules/crustdata/skills/crustdata-tool-selection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for crustdata-tool-selection

Your own site · 80×15
<a href="https://agentmods.dev/rules/crustdata/skills/crustdata-tool-selection"><img src="https://agentmods.dev/badge/rules/crustdata/skills/crustdata-tool-selection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01077
Opus 5.5 $0.00015 $0.00431
Sonnet 5.5 $0.00007 $0.00215
Haiku 4.5 $0.00004 $0.00108

Measured 15d ago against content hash d82abefc4712, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

crustdata-tool-selection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/crustdata-tool-selection.mdc · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Crustdata MCP server is Code Mode. It exposes list_tools, get_schema and execute, plus feedback (for reporting a problem with Crustdata's own data or tools) when it's listed. Every data operation happens inside an execute script:

// user query: <the user's request, in their words>
const r = await callTool('person_search', { filters, limit: 25 });
// r = { ok: true, data, credits_used? } | { ok: false, status, errorType, message }
  • Start every execute script with a // user query: <the user's request> line, or // model query: <what this run does> for your own follow-up step. The server rejects a script without one before it runs, at no charge.
  • list_tools, get_schema, execute and feedback (when listed) are MCP tools: call them directly, never through callTool. Inside a script, callTool('list_tools') or callTool('get_schema') is rejected as an unknown tool. callTool only takes the names list_tools returns.
  • Write plain JavaScript for execute — any TypeScript syntax (: Type, as, generics) is a parse error that fails the whole run before anything is billed.
  • Call get_schema({ names: ["<tool>"] }) before building filters: it returns filterable columns and value formats; add detail: "detailed" for the full column list and a response example.
  • in_, nin_, any_of and has_all take an array. Wrap a single value, as in in_(field, ['OpenAI']); a bare string throws.
  • A failed callTool returns { ok: false, ... }; it does not throw. Check ok before using data.

Order of preference (cheapest correct path first):

  • Company lookup: company_identify (FREE) → company_enrich by crustdata_company_id (2 credits per returned match; enriching by domain/name can fuzzy-match several companies and multiply the charge)
  • People search: person_search (indexed DB, ~0.03 credits/result) → only person_search_live (2 credits/result) when the DB returns 0 results or realtime data is required
  • Company search: company_search (~0.03 credits/result) → company_search_live (2 credits/result) only for realtime
  • Contact info (emails/phones): person_contact_enrich is THE tool — billed per contact type returned, no base fee, up to 25 profile URLs per call; narrow fields (e.g. contact.business_emails) to cap spend. Use person_enrich only for full profile data (work history, education, skills); its preview: true is free
  • Job listings: job_search (filters/sorts/aggregations, ~0.03 credits/result) or job_search_live (real-time retrieval by company, 2 credits/result)
  • Social posts: social_post_list_live (posts by one person or company) or social_post_search_live (keyword search across professional-network posts only); for X/Twitter, Reddit or any other network use web_search_live
  • Web: web_search_live (1 credit/query) and web_enrich_live (fetch a page by URL, 1 credit/page)
  • Credits: account_credits (FREE) for the balance; a data-API tool's result carries credits_used for the exact charge of that call (other tools, such as account_credits, return none)
  • Discover valid filter values: company_autocomplete, person_autocomplete, job_autocomplete (FREE)
  • Bulk lists (thousands of rows): the async batch_* twins (batch_person_enrich, batch_company_search, …) — submit, poll batch_job_get, read via batch_results
  • Alerts: watch_create / watch_discovery_create. Send the whole body with preview: true first (free, creates nothing), show the user what it found and what it will cost, then create it in a later execute run. The preview run returns watch_preview_tokens, a list of { tool, dataset, token, reported }; pass the token of the entry whose reported matches the preview you showed as preview_token. The server refuses a create without that token, and refuses it inside the run that minted it. If you change the body after previewing, preview again. watch_preview only shows a sample notification and does not count.

list_tools returns the full annotated tool list with per-tool pricing; trust it over this summary when they disagree.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed d82abefc4712
  2. 20d ago Changed · +4 lines 097d1ab7bf9b
  3. 1mo ago First seen · 32 lines · 37 tokens per session scan A 7b345f68abb3

Subscribe to this mod's changes

crustdata-tool-selection is a cursor rule published in the GitHub repository crustdata/skills (11 stars, last pushed 14d ago), licensed MIT. It adds 37 tokens to every session and 1,077 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.