Skip to main content
Glama
OpenAPI MCP Server

OpenAPI MCP Server

by matpb

get_endpoint_details

Retrieve detailed information about a specific API endpoint, including its parameters, request body schema, and response schemas, to understand how the endpoint works.

Instructions

Get detailed information about a specific API endpoint including parameters, request body schema, and response schemas.

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": {
      "path": "<path>",
      "method": "<method>"
    },
    "name": "get_endpoint_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe endpoint path (e.g., '/api/v2/users/{id}')
methodYesHTTP method (GET, POST, PUT, PATCH, DELETE)
resolveRefsNoWhether to resolve $ref references inline (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the shape of the returned content, which is useful, but says nothing about read-only semantics beyond the verb, permission requirements, behavior for unknown paths/methods, or how resolveRefs=true affects output size.

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?

A single sentence with zero filler, front-loading the verb and resource before listing the payload contents. 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.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description compensates by enumerating the returned fields (parameters, request body schema, response schemas), which is the key information an agent needs. Only minor gaps remain, such as error behavior on a nonexistent endpoint and how inline $ref resolution changes the payload.

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% and every parameter carries its own description, including the path example and the method enumeration, so the schema already does the heavy lifting. The description adds no meaning beyond that, making the baseline 3 appropriate.

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 uses a specific verb ('Get') and a specific resource ('detailed information about a specific API endpoint'), then enumerates what that detail contains: parameters, request body schema, and response schemas. This clearly separates it from discovery-oriented siblings like search_endpoints, though it never names those siblings explicitly.

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?

Usage is only implied: an agent can infer this is the lookup to call once it already knows a path and method, but the description never says so, nor does it point to search_endpoints for discovery or get_schema_details for component schemas. No exclusions or prerequisites are stated.

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