Skip to main content
Glama

String Web Access

Quote a site crawl

web_access_sitemap_quote

Quote an asynchronous crawl of authorized public pages on one website. Nothing is crawled or billed: the quote creates a job that waits for approval. Starting from one URL, the crawler follows same-domain links breadth-first and can also seed from the site's /sitemap.xml. PDF links are crawled as pages, billed like HTML pages; links inside a PDF are not followed. Requests must comply with destination policy, robots directives, rate limits, and access controls.

Use it to discover pages for site audits, authorized retrieval worklists, or coverage checks before fetching individual pages. Not for: reading one page's content (use web_access_fetch) or open-ended web queries (use web_access_search).

Requires url. Optional: maxPages, maxDepth, pathPrefix (only crawl URLs whose path starts with this, e.g. "/docs"), budgetUsd (spend ceiling; the crawl stops with status token_cap_exceeded if it would exceed it), useSitemap (also seed the site's root /sitemap.xml — one extra billed page, but finds pages links miss). The input schema states each field's bounds; a value outside them is rejected rather than replaced by the default, so omit a field to get its default.

{ "url": "https://example.com", "maxPages": 200, "maxDepth": 3 }

Returns: jobId, estimatedPages, and estimatedCostUsd, with status awaiting_approval. A 403 means the target domain is blocked for this account (contact support@usestring.ai).

Next: show the user estimatedCostUsd. Only once they approve that cost, call web_access_sitemap_start with the jobId.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "web_access_sitemap_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe full http(s) URL to start crawling from. The crawl stays on this URL's domain.
maxDepthNoHow many links deep the crawl follows from the start URL. Omit for 2.
maxPagesNoHow many pages the crawl may fetch at most; each fetched page is billed once the crawl starts, and the quote's estimatedPages and estimatedCostUsd follow from it. Omit for 10.
budgetUsdNoA spend ceiling in USD: the crawl ends with status token_cap_exceeded rather than exceed it. Omit to let the approved quote be the cap.
pathPrefixNoRestrict the crawl to URLs whose path starts with this prefix, e.g. '/docs'.
useSitemapNoAlso seed the crawl from the site's root /sitemap.xml (one extra billed page; finds pages that internal links miss).

Output Schema

NameRequiredDescriptionDefault
jobIdYesThe crawl job's id, which web_access_sitemap_start and web_access_sitemap_status take.
statusYesThe job's state: awaiting_approval until web_access_sitemap_start runs it.
estimatedPagesYesHow many pages the crawl is expected to fetch.
estimatedCostUsdYesThe quoted cost in USD. The user approves it before web_access_sitemap_start is called.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

The description adds substantial behavior beyond annotations: nothing is crawled or billed, the job waits for approval, breadth-first same-domain traversal, PDF billing and non-followed PDF links, policy/robots/rate-limit compliance, budget stop with token_cap_exceeded, and 403 meaning. This is genuinely rich context, so it scores well above baseline despite annotations already covering the safety profile.

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

Conciseness4/5

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

Front-loaded with purpose, then a bolded "Not for", then a parameter summary, a JSON example, returns, and next steps — scannable and well ordered. Some of the parameter prose restates schema descriptions, and the example adds little, so it falls short of a 5.

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?

For a billed, asynchronous, approval-gated crawl tool, it covers cost estimation, approval gating, retry/error semantics (403), and the exact next tool call. The output schema exists, so the brief returns summary is sufficient rather than a gap.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: defaults (2 depth, 10 pages), the pathPrefix example, the budgetUsd stop-status behavior, the extra billed page for useSitemap, and the non-obvious rule that out-of-bounds values are rejected rather than clamped. That last point is not in the schema and prevents a common misuse.

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?

States a specific verb and resource ("Quote an asynchronous crawl") plus scope ("authorized public pages on one website"), and explicitly contrasts itself with web_access_fetch and web_access_search. An agent can distinguish it from every named sibling without opening a schema.

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?

Gives positive use cases (site audits, retrieval worklists, coverage checks), an explicit "Not for" clause routing to fetch and search, and a follow-up routing rule to web_access_sitemap_start after cost approval. When-to-use and when-not-to-use are both covered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.