Skip to main content
Glama

get_api_endpoint_schema

Read-onlyIdempotent

Use this after discovery to inspect a selected Telnyx API operation before invocation. Returns its name, description, and input schema.

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": {
      "endpoint": "<endpoint>"
    },
    "name": "get_api_endpoint_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpointYesThe name of the endpoint to get the schema for.

Output Schema

NameRequiredDescriptionDefault
nameYes
descriptionYes
inputSchemaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "description": {
      +      "type": "string"
      +    },
      +    "inputSchema": {
      +      "type": "object"
      +    },
      +    "name": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "description",
      +    "inputSchema"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and a closed-world scope, so the safety profile is fully covered. The description adds the workflow constraint and a brief note on returned contents, but with an output schema present that return summary is largely redundant and nothing is said about error behavior or schema 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?

Two short sentences with zero filler, and the usage constraint is front-loaded ahead of the return summary. Nothing in the text is redundant or padded.

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?

The tool is simple: one required parameter, a closed-world read, and a declared output schema, so the description does not need to explain return values. What remains slightly thin is how the 'endpoint' identifier is obtained from discovery, but the overall definition is sufficient to call the tool correctly.

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% and the single 'endpoint' parameter is documented in the schema as 'the name of the endpoint to get the schema for'. The description adds no further meaning about the identifier's format or where it comes from, which is acceptable given the baseline for full coverage but is not additive.

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 and resource: 'inspect a selected Telnyx API operation' and returns 'its name, description, and input schema'. That is clearly distinct from invoke_api_endpoint and list_api_endpoints, though the siblings are not named explicitly, 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 Guidelines4/5

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

'Use this after discovery ... before invocation' gives an explicit position in the workflow, telling the agent this follows a listing step and precedes a call. It stops short of naming the alternative tools or stating when not to use it, but the sequencing guidance is unambiguous.

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