Skip to main content
Glama

Describe Tool

apibase.discovery.describe
Read-onlyIdempotent

Get the full definition of one tool by tool_id (a tool id or MCP name from apibase.discover): description, input schema, price, quality and definition_sha256, the same body as GET /api/v1/tools/. Then call the tool by name. Free, no charge (APIbase)

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": {
      "tool_id": "<tool_id>"
    },
    "name": "apibase.discovery.describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
tool_idYesTool id or MCP name, as returned by apibase.discover (e.g. "apibase.discover" or "apibase.discovery.search")

Output Schema

NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds non-obvious facts beyond them: the call is free of charge and no charge is incurred, and the response mirrors GET /api/v1/tools/<id>. It does not say what happens on an unknown or stale tool_id, but the cost and equivalence disclosures are genuinely useful additions.

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?

The return contents are front-loaded and the workflow note follows logically. Minor waste in the bracketed '(APIbase)' and the overlapping 'Free, no charge' phrasing, but the '/api/v1/tools/<id>' equivalence earns its space.

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 single-parameter read tool with annotations and an output schema, the description covers purpose, inputs, returned fields, cost, and next step. Remaining gaps (behavior on invalid ids, whether definition_sha256 supports caching) are small against what structured fields already supply.

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 the schema already explains that tool_id accepts a tool id or MCP name as returned by apibase.discover, with examples. The description restates the same distinction with examples rather than adding format, length, or resolution rules beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource: 'Get the full definition of one tool by tool_id', with the returned fields enumerated (description, input schema, price, quality, definition_sha256). It clearly separates itself from the sibling discovery tools (which search/list) and from the call tool, which actually invokes the described tool.

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 gives the workflow context — take the tool_id from apibase.discover, describe it, then call it by name — which tells the agent when this step belongs. It stops short of explicit exclusions or naming the alternative (e.g. 'use apibase.discovery.search if you only have keywords'), so it is clear context rather than full when/when-not guidance.

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.