Skip to main content
Glama

Get a request example

docs_get_api_example
Read-only

A ready request body from the spec, by the example name list_api_operations or get_api_operation gives (e.g. "viberToSms").

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": {
      "api": "<api>",
      "example": "<example>"
    },
    "name": "docs_get_api_example"
  }
}

Input Schema

NameRequiredDescriptionDefault
apiYesAPI name: flow-api, channels-api
exampleYesExample name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read. The description adds that the return value is a ready-to-use request body rather than prose documentation, which is useful context, but says nothing about lookup failure behavior or the shape of the returned body.

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 sentence, front-loaded with the result the caller gets, with an inline example value. Slightly awkward as a fragment and the referenced tool names omit the docs_ prefix, but nothing is wasted.

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?

For a two-parameter read with full schema coverage and no output schema, the definition covers purpose, input provenance, and the nature of the result. Missing only edge-case behavior when the example name is invalid.

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 both params described (api values flow-api/channels-api, and 'Example name'), so the schema already carries the load. The description adds provenance for the 'example' parameter and a concrete sample value ('viberToSms'), but that is a marginal increment over 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?

The description names a specific artifact — a ready request body from the spec — and the key that selects it, which separates it from docs_get and docs_get_api_operation. It is a noun phrase rather than a verb+resource sentence, but the intent (fetch a canned request example) is unambiguous.

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?

It tells the agent where the required 'example' name comes from (list_api_operations or get_api_operation), establishing a prerequisite call in the workflow. It stops short of stating what to do when no example matches, but the sequencing guidance is concrete.

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