Home / Token cost / ContrastAPI

The ContrastAPI MCP server costs 18,721 tokens before the first call.

Connect ContrastAPI and its 53 tool definitions are loaded into the model's context on every request — 9.4% of a 200k window spent before your agent does anything.

QUICK ANSWER The ContrastAPI MCP server's tool definitions consume 18,721 tokens — 9.8× the median MCP server (1,905 tokens). A scoped grant exposing only the tools you use cuts that roughly in proportion.

MEASURED FROM SCHEMAS 53 tools · 18,721 tokens · 9.4% of 200k · 1.9% of 1M Method →

What that buys before your agent starts working.

Tool definitions are overhead: they occupy context on every request and compete with your code, documents and conversation history for the same window.

200K WINDOW 9.4%
1M WINDOW 1.9%

Corpus context: ContrastAPI ranks #60 of 3,213 measured MCP servers by definition cost. The median is 1,905 tokens, p90 is 7,952, and the heaviest (Fusionauth) is 183,337 — 92% of a 200k window on its own.

Where the 18,721 tokens go.

Each row is one tool definition as a tools/list entry — name, description and input schema — counted with o200k_base. Average: 353 tokens per tool.

ToolCategoryTokens% of server
cve_search Read 1,617 8.6%
cve_lookup Read 963 5.1%
atlas_technique_search Read 607 3.2%
bulk_cve_lookup Read 603 3.2%
d3fend_defense_for_attack Write 596 3.2%
d3fend_defense_search Read 578 3.1%
cwe_lookup Read 486 2.6%
seo_audit Write 454 2.4%
calculate_risk_score Read 450 2.4%
ip_lookup Read 450 2.4%
cve_leading Read 430 2.3%
exploit_lookup Read 424 2.3%
get_cvss_details Read 410 2.2%
atlas_technique_lookup Read 371 2.0%
brand_assets Execute 359 1.9%
audit_domain Read 348 1.9%
atlas_case_study_search Read 342 1.8%
domain_report Read 341 1.8%
robots_txt Read 341 1.8%
redirect_chain Execute 339 1.8%
check_dependencies Read 336 1.8%
kev_detail Write 324 1.7%
bulk_sigma_rule_lookup Read 318 1.7%
bulk_atlas_technique_lookup Read 311 1.7%
email_verify Read 301 1.6%
atlas_case_study_lookup Read 299 1.6%
sigma_rule_lookup Read 295 1.6%
phishing_check Read 288 1.5%
bulk_ioc_lookup Read 285 1.5%
phone_lookup Read 285 1.5%
check_headers Read 272 1.5%
d3fend_attack_coverage Read 272 1.5%
wayback_lookup Read 272 1.5%
scan_headers Read 267 1.4%
check_injection Read 265 1.4%
ioc_lookup Read 264 1.4%
d3fend_defense_lookup Read 256 1.4%
check_secrets Read 255 1.4%
subdomain_enum Read 255 1.4%
threat_report Read 254 1.4%
email_mx Read 253 1.4%
hash_lookup Read 253 1.4%
asn_lookup Read 243 1.3%
tech_stack_cve_audit Read 239 1.3%
ssl_check Read 224 1.2%
password_check Read 208 1.1%
dns_lookup Read 188 1.0%
email_security_posture Read 182 1.0%
email_disposable Read 177 0.9%
username_lookup Read 155 0.8%
threat_intel Read 147 0.8%
whois_lookup Read 143 0.8%
tech_fingerprint Read 126 0.7%

Most agents use a handful of these tools. They pay for all 53.

A PolicyLayer grant exposes only the tools you allow — ungranted definitions are filtered out of the tool list, so they never enter the context window. Estimates below assume typical-weight tools (353 tokens each).

Grant scopeDefinition costReduction
All 53 tools (no gateway) 18,721 tokens
3 granted tools ~1,060 tokens −94%
5 granted tools ~1,766 tokens −91%
10 granted tools ~3,532 tokens −81%

ContrastAPI token-cost questions.

How many tokens does the ContrastAPI MCP server use?+

Its 53 tool definitions total 18,721 tokens — 9.4% of a 200k context window — measured with tiktoken o200k_base over the serialised tools/list payload. Exact counts vary slightly by client and model.

Why does ContrastAPI consume tokens before I send a message?+

MCP clients load every connected server's tool definitions — name, description, and input schema — into the model's context so it knows what it can call. That payload is charged against your context window on every request, whether or not a tool is used.

How do I reduce ContrastAPI's token usage?+

Expose fewer tools. A PolicyLayer grant scopes ContrastAPI to only the tools you allow — ungranted definitions are filtered out of the tool list, so they never enter the context window. A grant of 3 typical tools costs roughly 1,060 tokens, a 94% reduction.

Does deferred tool loading fix this?+

Partially, in some clients. Claude Code defers MCP tool schemas behind a tool-search step by default, and VS Code has experimental grouping — but you still pay tokens per search and reload, and Cursor, Windsurf and Gemini CLI load definitions upfront. Reducing the exposed tool set cuts the cost in every client.

How these numbers were measured.

01
Serialisation

Each tool is serialised as a tools/list entry — name, description, input schema — from the schemas in the PolicyLayer scan database. Clients differ slightly in framing, so treat counts as close estimates.

02
Tokeniser

tiktoken o200k_base (GPT-4o/o-series). Anthropic's current tokeniser isn't published, so Claude's exact counts will differ; for English text and JSON schemas the totals are close enough to treat these as estimates.

03
Deferred loading

Some clients now defer schema loading (Claude Code's tool search; VS Code experimental grouping). You still pay per search and reload — and Cursor, Windsurf and Gemini CLI load everything upfront.

Computed 07-06-2026 from the PolicyLayer scan database over all 53 catalogued ContrastAPI tools. Counts refresh with every site build.

Expose only the tools you use — the rest never enter your context.

A PolicyLayer grant scopes ContrastAPI to the tools you actually allow. Ungranted definitions never load, and every call that does run is checked against policy first.

Free to start. No card required.

4,600+ MCP servers and 31,000+ tools scanned and risk-classified.

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.