Skip to main content
Glama

Convert tool schema

convert_tool_schema
Read-onlyIdempotent

Convert one LLM tool/function definition between OpenAI, OpenAI strict mode, Anthropic, Gemini, MCP and plain JSON Schema. The input format is auto-detected. Every change is reported as an issue with a JSON pointer. Free: 5 calls/hour per IP with arguments up to 8 KB; then $0.01 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
toolYesTool definition in any supported format (OpenAI chat/responses, Anthropic, Gemini, MCP, or {name, description, parameters}).
targetsNoTarget formats. Default: all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, but the description adds behavior annotations cannot express: format auto-detection, that changes are surfaced as issues keyed by JSON pointer, and concrete limits (5 calls/hour per IP, 8 KB argument cap, then $0.01 USDC via x402). Rate limits and payment/auth requirements are exactly the context an agent needs before invoking.

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?

Three compact sentences, front-loaded with the action and format scope, then behavior, then cost limits. Every sentence carries distinct information with no redundancy against the title.

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 2-parameter, read-only conversion tool with no output schema, the description covers capabilities, detection behavior, diagnostics, and cost. The one gap is the return shape: it mentions issues with JSON pointers but not that the response contains the converted schema per requested target, which is what the agent will actually consume.

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 both `tool` and `targets` are already documented with their accepted formats and the 'Default: all' behavior. The description restates the format list but adds no syntax or per-target nuances (e.g., whether openai_strict rewrites optional fields), so it sits at the baseline for a fully-documented schema.

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?

The description states a specific verb ('Convert') and resource ('one LLM tool/function definition') and enumerates the exact supported format set (OpenAI, OpenAI strict, Anthropic, Gemini, MCP, JSON Schema). The word 'one' implicitly distinguishes it from the sibling batch_convert_tool_schemas, so the agent can pick correctly without opening schemas.

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 clear operating context: input format is auto-detected, so the agent knows it need not pre-classify, and the free/paid thresholds tell it when calls will start costing money. It never explicitly names the alternative (batch_convert_tool_schemas) for multi-tool conversion or states when not to use it, which keeps this below a 5.

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