Skip to main content
Glama
mysleekdesigns

CrawlForge MCP Server

extract_embedded_state

Read-onlyIdempotent

Extract structured JSON data embedded in a page's JavaScript state by specifying a path to return a specific subtree, avoiding unreliable HTML parsing.

Instructions

Use this when a page's data lives in its embedded JavaScript state rather than its rendered HTML - Next.js (NEXT_DATA and React Server Component payloads), Nuxt, Apollo, Redux (INITIAL_STATE, PRELOADED_STATE), and blocks. One fetch, exact values, no LLM in the extraction path, so nothing can be fabricated. Payloads are routinely over a megabyte - pass path to return one subtree instead of the whole blob. Not for the rendered text of a page (scrape) or for sites built without a framework payload. Cost: 2 credits. Example: extract_embedded_state({url: "https://www.ticketmaster.com/discover/concerts", path: "next_data.props.pageProps"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to read embedded state from
pathNoReturn only this subtree instead of the whole payload. Dotted keys and array indexes, e.g. "next_data.props.pageProps" or "next_f[0].f" — not JSONPath (no wildcards, filters or recursion). State payloads are routinely over a megabyte; scope them.
user_agentNoOverride the outbound User-Agent. CrawlForge identifies itself honestly by default; use this only for targets you have your own agreement with.
respect_robotsNoRespect the target site's robots.txt (default: true). Setting this to false is honoured, returns a warning in the response, and is recorded against your API key — it is your decision, not a silent default.
max_inline_charsNoLargest result to return inline, in characters of its JSON. Over it, the call returns a preview plus a result_handle for read_result instead of the whole result (default 40,000; env CRAWLFORGE_MAX_INLINE_CHARS)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv6.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / max_inline_chars
      Added value: +{
      +  "description": "Largest result to return inline, in characters of its JSON. Over it, the call returns a preview plus a result_handle for read_result instead of the whole result (default 40,000; env CRAWLFORGE_MAX_INLINE_CHARS)",
      +  "maximum": 10000000,
      +  "minimum": 1000,
      +  "type": "integer"
      +}
  2. Addedv5.4.0

TDQS

A4.9/5.0
Behavior5/5

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

The description adds meaningful behavioral context beyond annotations: 'One fetch, exact values, no LLM in the extraction path, so nothing can be fabricated,' and warns payloads are often over a megabyte. It also discloses the credit cost, which is useful operational behavior. No contradiction with the readOnly/idempotent/destructive annotations.

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?

Every sentence earns its place: purpose, framework guidance, behavioral guarantee, payload-size warning, non-usage exclusion, cost, and a realistic example. It is dense but well organized, front-loading the core decision before the details.

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?

Despite having no output schema, the description gives enough to invoke the tool correctly: when to use it, how to scope large results with path, an executable example, and clear non-targets. The schema covers parameter mechanics like robots and inline limits, so no critical guidance is missing.

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?

Input schema coverage is 100%, so the baseline is 3. The description adds value by explaining why path matters ('Payloads are routinely over a megabyte') and giving a concrete path example ('next_data.props.pageProps'), going beyond the schema's syntax note.

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?

The description names a specific verb and resource: extracting data from a page's embedded JavaScript state rather than rendered HTML. It explicitly identifies frameworks (Next.js, Nuxt, Apollo, Redux, application/json blocks) and distinguishes itself from scrape with 'Not for the rendered text of a page (scrape) or for sites built without a framework payload.'

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?

The opening line states the exact condition for use: 'Use this when a page's data lives in its embedded JavaScript state rather than its rendered HTML.' It also gives an explicit exclusion and the name of the alternative (scrape), plus an example showing the intended call shape.

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

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/mysleekdesigns/crawlforge-mcp'

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