Skip to main content
Glama

Genesis tools

URL to Text API — clean page text from any URL as JSON

url_to_text
Read-only

Fetch any public URL and get back clean, readable page text as JSON (title, text, links). Built for web scraping and page-text extraction agents: one call returns the extracted body instead of raw HTML, so you can chain it straight into your pipeline. Source: the live public page you pass in. Example input: {"url": "https://example.com"}. Uses one call of your free daily calls or prepaid key; x402 clients pay $0.005 per call in USDC. Only successful calls count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "url_to_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond the annotations: the return is extracted body text rather than raw HTML, the source is the live page passed in, and there is a disclosed cost model (free daily calls, $0.005 per call via x402, only successful calls count). It omits operational details such as rendering of JS-heavy pages, redirects, or failure modes, keeping it below a 5.

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-loads what the tool returns, then the audience, then billing; every sentence is informative. The pricing/quota sentence is somewhat long but earns its place by preventing surprise charges.

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

Completeness4/5

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

For a one-parameter fetch tool with no output schema, the description covers input constraints, return fields, and cost behavior adequately. Some operational edge cases (non-public or broken URLs, large pages) are unaddressed but are not blocking for correct invocation.

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

Parameters3/5

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

Schema coverage is 0% and the single 'url' parameter is undocumented in the schema, so the description must compensate; it adds the constraint that the page must be public and gives an example input value. It does not clarify scheme requirements, trailing-path handling, or what makes a URL invalid, so compensation is partial.

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 ('Fetch any public URL') plus the exact return shape ('clean, readable page text as JSON (title, text, links)'). The URL→text extraction framing cleanly separates it from siblings like web_search, which searches rather than retrieving a specific page.

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

Usage Guidelines4/5

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

Gives a clear usage context ('Built for web scraping and page-text extraction agents... chain it straight into your pipeline') and implies when it beats raw HTML fetching. It stops short of naming an alternative tool or stating when NOT to use it, so it is a strong 4 rather than a 5.

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.

Resources