crustdata-tool-selection

crustdata-tool-selection is a cursor rule for Cursor from crustdata/skills. It costs 37 tokens per session (718 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 718 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.00718
Opus 5 $0.00018 $0.00359
Sonnet 5 $0.00007 $0.00144
Haiku 4.5 $0.00004 $0.00072

Measured 7d ago against content hash 7b345f68abb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 7d 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 · 32 lines

What it actually says

The Crustdata MCP server is Code Mode. It exposes three tools — list_tools, get_schema, execute — and every data operation happens inside an execute script:

const r = await callTool('person_search', { filters, limit: 25 });
// r = { ok: true, data, credits_used } | { ok: false, status, errorType, message }
  • 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(["<tool>"]) before building filters — it returns filterable columns, value formats, and a response example.
  • 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 (realtime scrape by company, 2 credits/result)
  • Social posts: social_post_list_live (posts by one person or company) or social_post_search_live (LinkedIn keyword search); for X/Twitter or Reddit 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; every callTool result carries credits_used for the exact charge
  • 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 (always preview with watch_preview first — the server refuses an unpreviewed create)

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

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. 7d 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 (8 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 718 once invoked, about $0.0002 per session on Opus 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.