Skip to main content
Glama
OpenAPI MCP Server

OpenAPI MCP Server

by matpb

search_schemas

Find OpenAPI schemas or models by name pattern or property name to locate data structures in a spec. Returns a paginated list of matching schemas for navigation and reuse.

Instructions

Search for schemas/models in the OpenAPI spec by name pattern or property name. Returns a paginated list of matching schemas.

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_schemas"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default: 20)
offsetNoNumber of results to skip for pagination (default: 0)
namePatternNoRegex pattern to match schema names (e.g., 'User' to find User, UserResponse, etc.)
propertyNameNoFind schemas that contain a property with this name (partial match)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose that results are paginated and returns 'a list of matching schemas', but it does not say what each match contains (name only vs. full schema body), whether both filters are combined with AND or OR, or whether matching is case-sensitive. Those omissions matter for a filter tool with two independent criteria.

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, front-loaded with the action and scope, followed by the return shape. No filler, no redundancy against the schema, and the pagination note is placed where it is useful.

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 read-only search with no required parameters and a fully described schema, most of what an agent needs is present. What is missing is the relationship between the two filters and what a result record contains, which for a two-criteria search tool is a real information gap rather than a nicety.

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 all four parameters are already documented with defaults and examples. The description only restates the two filter modes ('name pattern or property name') and adds no semantics beyond the schema, such as anchoring behavior or filter combination logic. 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?

The description gives a specific verb and resource ('Search for schemas/models in the OpenAPI spec') plus the search modes (name pattern or property name), which separates it from search_docs and search_endpoints that target other artifacts. It stops short of explicitly contrasting with get_schema_details or search_endpoints, but the resource scope is clear.

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?

Saying it matches by name pattern or property name implies the use case (find schemas when you don't know the exact name), but there is no explicit when-to-use/when-not guidance and no named alternative for retrieving a single schema in full. An agent can infer usage but must reason about it.

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