Skip to main content
Glama

Start a procedure from an endpoint the site already calls

procedure_draft

Generate runnable code from an observed API endpoint before writing a fetch by hand, using the method, path, and parameter names learned from site traffic. Omit the endpoint to list candidates.

Instructions

Turn an endpoint from this site's observed API into working code you can run, adjust and save. Use it before writing a fetch by hand: the method, the path, the parameter names and the fact that it returns 2xx were all learned from the site's own traffic, so a draft describes something that has already worked rather than something that might.

Pass no name to see what is available. What is left for you is the part only you know: what the endpoint is for, and which field of the response actually answers the question.

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": {
      "url": "<url>"
    },
    "name": "procedure_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe site.
endpointNoWhich one, as `GET /api/v1/servers` or just a distinctive fragment of the path. Omit to list the candidates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses where the data comes from (the site's own observed traffic), what is guaranteed (the endpoint returned 2xx), and that omitting the endpoint returns a candidate list. It leaves the actual return shape and whether anything is persisted to the sibling save tool unstated.

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?

The key point (use this before hand-writing a fetch, and why) is front-loaded and the listing behaviour comes second. Some phrasing is rhetorical filler ('rather than something that might', 'the part only you know') that could be trimmed without losing meaning.

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 two-parameter tool with no annotations and no output schema, the description covers provenance, the empty-argument behaviour, and the division of labour with the caller. The main residual gap is what the draft actually looks like and how it relates to procedure_save.

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 100%, so the schema already documents both fields and the baseline is 3. The description adds useful framing about what the agent must supply (purpose, which response field matters), but it refers to 'name' while the parameter is 'endpoint', which is a small terminology mismatch rather than added clarity.

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 concrete verb and resource: turn an observed endpoint into runnable code that can be adjusted and saved. It is clearly distinct from the procedure_list/procedure_delete siblings, though it never names a sibling, and the phrase 'and save' sits close to procedure_save without clarifying the boundary.

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?

It gives a clear trigger ('Use it before writing a fetch by hand') and explains the listing mode ('Pass no name to see what is available'). It does not state any when-not condition or name an alternative tool, so an agent must infer the relationship to procedure_save.

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