Skip to main content
Glama
Swagger MCP Server
by Waltu

get_endpoints

Retrieve all API endpoints for a service by its slug to browse routes and analyze available operations.

Instructions

Get all endpoints from a service's API

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": {
      "slug": "<slug>"
    },
    "name": "get_endpoints"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesService slug identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about whether results are paginated, truncated for large APIs, what permissions are needed, or what the response looks like. For a read-listing tool this leaves significant operational gaps.

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?

One short, front-loaded sentence with no wasted words. It is efficient but borders on under-specification given the absence of annotations and any return-value context.

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?

For a simple one-parameter read tool with no output schema and no annotations, the definition is minimally adequate. It omits pagination/truncation behavior and any hint about the shape of the returned endpoint list, which an agent would benefit from knowing.

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% with a single documented 'slug' parameter, so the baseline is 3. The description only loosely ties the slug to a service ('a service's API') and adds no format, validation, or lookup guidance beyond the schema.

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?

Specific verb ('Get') and resource ('endpoints') scoped to a single service's API, and the word 'all' signals an unfiltered listing rather than a search. It stops short of naming sibling tools like search_endpoints or get_endpoint_details, so differentiation is implied 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 Guidelines3/5

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

The phrase 'all endpoints' implicitly tells an agent this is the full-collection fetch rather than a filtered search, which weakly distinguishes it from search_endpoints. There is no explicit when-to-use, when-not-to-use, or named alternative, leaving the choice to inference.

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