Skip to main content
Glama

Call a data API with your credentials

call_data_api
Destructive

Call a data API using your credentials, return the answer as sent, refuse writes unless allow_writes is true, and keep large responses behind a fetch_raw handle.

Instructions

Call a data API with the user's credentials (never shown) and return its answer as sent. Writes are refused unless 'allow_writes' is true and the server allows them. A large answer stays behind the handle for 'fetch_raw'.

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": "call_data_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoFor a raw call: the JSON body.
hostNoFor a raw call: one of the vendor's other named hosts, if not its main one.
pathNoFor a raw call: a path on the vendor's API, starting with '/'.
queryNoFor a raw call: query parameters.
methodNoFor a raw call.
paramsNoThe endpoint's own inputs, as data_api_endpoint lists them. An undeclared one is refused.
vendorNoFor a raw call: the vendor's slug.
endpointNoA catalog endpoint id, its inputs in 'params'; or give 'vendor', 'method' and 'path'.
allow_writesNoRequired to change data. Ask the user first, and dry-run (validateOnly etc.) before.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, so the safety profile is known; the description adds genuinely new context beyond them: writes are refused unless allow_writes is true *and* the server permits them, credentials are never exposed, and responses are returned unmodified. That clarifies the gating behavior of a destructive tool well, though it does not address rate limits or error/failure behavior.

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?

Three short sentences, front-loaded with the core action, followed by the write gate and the large-response escape hatch. No filler, though 'return its answer as sent' is slightly awkward phrasing for raw passthrough.

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 nine-parameter, dual-mode, open-world tool with no output schema, the definition covers the essentials an agent needs before calling: credentials handling, write gating, and where large results go. It leaves the two invocation modes and the return-shape details entirely to the schema, which is rich enough to carry them.

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 description coverage is 100% and the schema already spells out both invocation modes (catalog endpoint vs raw vendor/method/path). The description adds meaning only for allow_writes, tying it to the write-refusal policy; the remaining eight parameters get no added semantics beyond the schema, so the baseline 3 applies.

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 and resource: proxy an authenticated call to a vendor data API with the user's credentials and return the response verbatim. It distinguishes itself from fetch_raw by explaining that large answers stay behind a handle, but it never contrasts itself with catalog-oriented siblings such as data_api_endpoint or answer.

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

Usage Guidelines3/5

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

The description implies the core usage condition (calls requiring the user's credentials) and names fetch_raw as the retrieval path for large answers, which is a useful routing hint. It stops short of stating when an agent should use this tool versus the catalog lookup or higher-level research/answer siblings, and the 'ask the user first, dry-run before' guidance lives only in the schema.

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