Skip to main content
Glama

Specway API Library

Update an endpoint description

specway_update_endpoint_description
DestructiveIdempotent

Replaces the description of one endpoint in the docs with new plain text (up to 2000 characters). The change is live at once and overwrites the old description. The spec stays the source of truth: when the API is next synced from its spec URL, this endpoint's description is replaced by the spec's text again, so a lasting change belongs in the spec itself.

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": {
      "api_id": "<api_id>",
      "endpoint_id": "<endpoint_id>",
      "description": "<description>"
    },
    "name": "specway_update_endpoint_description"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAn api_id from specway_list_apis. Opaque.
descriptionYesThe new description, as plain text.
endpoint_idYesAn endpoint_id from specway_get_api. Opaque.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the change is live at once, it overwrites the old description, and—critically—it is transient because the next spec sync reverts it. That durability caveat is non-obvious and cannot be derived from destructiveHint/idempotentHint alone, and it does not contradict the annotations.

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 sentences, each load-bearing: what it does, that it applies immediately, and that it is not persistent. The durability warning is placed last where it lands as the key caveat, with no redundant filler.

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?

For a three-parameter mutation with no output schema, the definition covers everything an agent needs to act correctly: scope, input format and limit, immediacy, and the persistence caveat. Nothing essential is left to inference.

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 api_id, endpoint_id, and description are already fully documented, including the 2000-character limit that the description merely restates. The description adds light framing ('plain text') but no new syntax or format guidance, so the baseline applies.

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?

States a specific verb and resource ('Replaces the description of one endpoint in the docs') and pins the scope to a single endpoint with plain text up to 2000 characters. An agent can immediately tell this is a single-field write, not a bulk or spec-level edit, which separates it from specway_sync_api and specway_set_endpoint_visible.

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?

Gives clear context for use (immediate doc-level override) and an implicit alternative: a lasting change 'belongs in the spec itself,' which routes the agent toward spec editing rather than this tool. It does not explicitly name the sibling tool to use for that path, which keeps it just below the top score.

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