Skip to main content
Glama
OpenAPI MCP Server

OpenAPI MCP Server

by matpb

search_endpoints

Filter and retrieve OpenAPI endpoints by path pattern, HTTP method, tags, or description, returning paginated matches for API exploration.

Instructions

Search API endpoints by path pattern, HTTP method, tags, or description. Returns a paginated list of matching endpoints.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoArray of tags to filter by (endpoints matching any tag will be included)
limitNoMaximum number of results to return (default: 20)
methodNoHTTP method to filter by (GET, POST, PUT, PATCH, DELETE)
offsetNoNumber of results to skip for pagination (default: 0)
descriptionNoRegex pattern to search in endpoint summary/description
pathPatternNoRegex pattern to match endpoint paths (e.g., 'user' to find all user-related endpoints)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description bears the full behavioral burden. It does disclose the output shape as a paginated list, which is genuinely useful, but it omits that this is a non-mutating read, does not mention how invalid regex input behaves, and gives no indication of result ordering or typical volume.

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?

Two sentences, zero filler, with the primary purpose front-loaded before the return-value note. Nothing could be removed without losing information.

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 six-parameter search tool with no output schema, the definition covers purpose and result shape but leaves the agent guessing about what an endpoint record contains and how to follow up once results are found. Adequate but with clear gaps given the sibling set of detail-fetching tools.

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 description coverage is 100%, so all six parameters (tags, method, limit, offset, description, pathPattern) are already documented including defaults and enum-like method values. The description adds only the high-level pairing of filter dimensions and pagination, so the baseline 3 applies.

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+resource ('Search API endpoints') and enumerates the filter dimensions (path pattern, HTTP method, tags, description), which lets an agent distinguish it from search_docs and search_schemas by resource alone. It stops short of explicitly contrasting itself with those siblings, so a 4 rather than a 5.

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?

The description never says when to use this versus get_endpoint_details (known endpoint) or get_openapi_spec, and offers no exclusions or prerequisites. Usage is only inferable from the fact that it is a search tool.

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