Skip to main content
Glama

Site Generator docs

Client API operation

get_api_operation
Read-only

The Site Generator client API (/v1) contract from its OpenAPI description. Without operation, lists every operation as "METHOD /v1/path — summary". With it (e.g. "POST /v1/sites"), returns that operation's parameters, body and responses as JSON. Calling the API itself needs the person's gen_ API key.

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

Input Schema

NameRequiredDescriptionDefault
operationNo"METHOD /v1/path" exactly as the list shows it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description goes well beyond them: it discloses the exact list-mode output format ("METHOD /v1/path — summary"), the JSON fields returned in detail mode (parameters, body, responses), and the auth constraint for actually invoking the API. That auth note is valuable context an agent would otherwise misjudge as this tool's own requirement.

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?

Three tight sentences, front-loaded with what the tool returns, then the two-mode split, then the auth caveat. No filler, and the mode distinction appears before the example so the agent reads it in the right order.

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

Completeness5/5

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

With no output schema, the description carries the burden of describing return values and does so for both modes. For a single-optional-parameter read-only lookup, nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it gives the exact expected format ("POST /v1/sites") and clarifies the string must match the listed form exactly, which the schema's own description only partially conveys. This prevents the common failure of passing a bare path or a lowercase method.

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?

The description names a specific resource (the Site Generator client API /v1 contract) and a specific verb action (retrieve from its OpenAPI description), and it spells out the two distinct result shapes: an operation index versus a single operation's detail. An agent can tell immediately this is an API-spec lookup tool, distinct from the page/doc siblings.

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 clearly states the two usage modes: omit `operation` to list everything, supply it to fetch one operation, with an example value. It also flags the downstream prerequisite that actually calling the API requires the user's gen_ API key, which orients the agent on what this tool does and does not do. It stops short of naming when to prefer this over the sibling tools, but those siblings are unrelated doc tools.

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