Skip to main content
Glama
RapierCraft

alterlab-mcp-server

by RapierCraft

alterlab_estimate_cost

Preview scraping costs for any URL before committing. Check anti-bot tier (1–4), estimated cost, and confidence level to avoid surprises on protected sites.

Instructions

Preview the cost of scraping a URL before committing — no credits charged. Returns the predicted anti-bot tier (1-4), estimated cost per request, and confidence level. Call this before scraping protected or unfamiliar sites to avoid surprises. Tier 1 (simple HTTP): $0.0001. Tier 4 (full browser + anti-bot bypass): $0.001. Use render_js and use_proxy flags to see how options affect cost.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to estimate scraping cost for
modeNoScraping modeauto
formatsNoOutput formats to include in the estimate. Passed to the API but does not currently affect the cost estimate — the endpoint uses URL-pattern heuristics only. 'json_v2' returns a structured section tree. 'rag' returns chunked text for retrieval-augmented generation. 'content' returns body_markdown + content_hash + images + links. 'raw' returns the response body byte-for-byte with no transformation.
render_jsNoEnable JS rendering (forces Tier 4 minimum — no separate add-on charge)
use_proxyNoInclude premium proxy cost (+1 credit)
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Description covers key behavioral facts: no credits charged, returns tier/cost/confidence, explains tier pricing, and honestly notes that the 'formats' parameter doesn't affect cost estimate. With no annotations, this fully compensates.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five concise sentences: purpose, returns, usage, tier breakdown, flag behavior. No fluff, each sentence serves a purpose. Front-loaded with core information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers all necessary aspects for a cost estimation tool: purpose, return values, pricing tiers, parameter effects, and usage advice. No output schema, but return values are well described. Complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds significant value beyond schema: explains render_js forces Tier 4 minimum, formats don't affect cost, use_proxy adds +1 credit, and describes format options in detail. Schema coverage is 100%, but description enriches each parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool's purpose: preview scraping cost before committing, with no credit charge. It distinguishes itself from siblings (e.g., alterlab_scrape, alterlab_crawl) by focusing on cost estimation rather than actual scraping.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises to call this before scraping protected or unfamiliar sites to avoid surprises, and shows how to use flags (render_js, use_proxy) to explore cost implications. This is strong usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RapierCraft/alterlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server