Skip to main content
Glama

Fetch a JSON API

fetch_json

GET a public JSON endpoint and return the parsed result. Cost: 1 credit per call.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) page URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It usefully discloses a cost ('1 credit per call'), but says nothing about timeouts, redirect following, auth requirements, size limits, or error behavior for a live network call.

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?

Two compact sentences with the core action front-loaded and the cost disclosure appended. Nothing is wasted or buried.

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

Completeness3/5

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

For a low-complexity single-param tool with no output schema, the description should still clarify return shape and failure behavior; 'parsed result' is thin and nothing is said about non-JSON responses or errors. It is minimally adequate but leaves real gaps for a network-facing tool.

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?

There is a single parameter with 100% schema description coverage ('Public http(s) page URL'), so the schema already does the work. The description adds no extra meaning about the URL (e.g. query handling or scheme restrictions), giving the baseline 3.

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

Purpose4/5

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

States a specific verb (GET) and resource (public JSON endpoint) and clarifies the output ('parsed result'). It implicitly distinguishes itself from HTML-oriented siblings like scrape_page or extract_content by targeting JSON, but never names or contrasts those siblings explicitly.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and does not point to any alternative sibling (e.g. scrape_page for HTML, parse_feed for feeds). An agent must infer the selection criteria from the name alone.

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.