Skip to main content
Glama

Specway API Library

Get API endpoints

specway_get_api
Read-onlyIdempotent

One API on the docs site with its endpoints: endpoint_id, method, path, summary, a short description and whether the endpoint is visible in the docs. Endpoints come in spec order, up to 200 per call; offset pages through a larger API and next_offset is null on the last page. Descriptions longer than 240 characters are cut.

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>"
    },
    "name": "specway_get_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_idYesAn api_id from specway_list_apis. Opaque.
offsetNoHow many endpoints to skip. Default 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real operational detail on top: a 200-endpoint page cap, spec ordering, next_offset=null as the terminal signal, and 240-character truncation of descriptions. The truncation note is the kind of caveat an agent cannot get from annotations or schema, and only missing-failure/empty-result behavior keeps it from a 5.

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, front-loaded with what the tool returns, then paging limits, then the truncation caveat. No restatement of the title, no filler, and the most consequential constraint (200 cap / truncation) is placed where it will be read.

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?

With no output schema, the description correctly carries the burden of describing the return shape and does so field by field, plus paging and truncation. It stops short of covering edge cases such as an unknown api_id or what an empty endpoint list looks like, which is the only real gap for a two-parameter read tool.

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 goes beyond the schema's bare 'how many endpoints to skip' by explaining that offset pages through a larger API and that next_offset is null on the last page. That converts offset from a raw integer into a usable paging loop, which is genuine added meaning.

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: returns one API plus its endpoints, and enumerates the returned fields (endpoint_id, method, path, summary, description, visibility). That is enough to tell it apart from the single-endpoint sibling specway_get_endpoint in spirit, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no alternative is named (specway_list_endpoints, specway_find_api, specway_get_endpoint are all plausible neighbors). The pagination sentences imply a workflow for large APIs, but the agent is left to infer selection criteria on its own.

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