Skip to main content
Glama

ai_document_endpoint

Send an API request, analyze its response, and generate a markdown description of the endpoint's purpose, inputs, outputs, and error cases using AI.

Instructions

Send a request, analyse the response, and use AI to generate a markdown description of what the endpoint does, its inputs, outputs, and error cases.

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": {
      "request_id": "<request_id>"
    },
    "name": "ai_document_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmedNoSet to true to confirm sending to an external URL after reviewing it
request_idYes
environment_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6-beta

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the most consequential trait — that an actual request is sent and an AI model is invoked — but it says nothing about the external-URL confirmation step, whether the call can mutate remote state, whether it is retried, or what AI cost/latency to expect. The side effect is named, but the safeguards and consequences around it are not.

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?

A single front-loaded sentence that packs the action, the mechanism (AI), and the output artifact (markdown covering inputs, outputs, error cases) without filler. It is slightly comma-heavy but every clause contributes distinct information.

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?

With no annotations and no output schema, the definition should explain the safety workflow around sending to an external URL and what the markdown output looks like. It does convey the output artifact and the general pipeline, but leaves the confirmation workflow, failure modes, and the role of request_id/environment_id to be discovered elsewhere.

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 only 33%: only 'confirmed' is documented, and its wording ('after reviewing it') hints at a review-then-send workflow. 'request_id' and 'environment_id' are undocumented in both the schema and the description, and the description adds no meaning about what request_id refers to or how environment_id changes behavior. Some of the coverage gap is left unaddressed.

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?

The description states a specific multi-step action: send a live request, analyse the response, and produce an AI-generated markdown description covering inputs, outputs, and error cases. That is far more informative than the bare tool name. It stops short of differentiating itself from plausible siblings like endpoint_summary, so an agent cannot tell purely from this text whether it sends a real request or merely reads stored data.

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?

Usage is only implied: the agent can infer this is for documenting an endpoint. There is no explicit when-to-use statement, no mention of when NOT to use it (e.g. when no live call should be made), and no named alternative such as endpoint_summary. The important gate is left entirely to the schema's 'confirmed' field.

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