Skip to main content
Glama

Messages

post_messages

The official Anthropic API endpoint for generating conversational responses using Claude models. This endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters. Group: Anthropic Endpoints. Billing per call: Credits: metered.

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body. Example: {"model":"claude-opus-5-5","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It mentions metered billing, which is useful, but says nothing about side effects, idempotency, rate limits, error behavior, or what state a POST creates; the capability list describes features rather than runtime behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence identifies the endpoint immediately, but the middle is a feature catalogue and the trailing 'Group' and 'Billing per call' fragments read as metadata rather than actionable guidance. Nothing is badly misplaced, yet several clauses do little to help an agent call the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

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

With no annotations, no output schema, and a nested free-form body object, the description should explain the response shape (content blocks, stop reasons) and key request semantics. It instead enumerates features, leaving the agent without the behavioral and return-value context this complexity demands.

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 body parameter already carries an example request, so the baseline is 3. The description does add some semantic mapping by naming capabilities that correspond to body fields (system instructions, tools, thinking, caching), but it gives no field-level syntax or constraints.

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 states a clear action and resource: generating conversational responses with Claude models, and enumerates concrete capabilities (multimodal input, tool use, extended thinking, prompt caching). It stops short of distinguishing the tool from siblings such as post_chat_completions or post_responses, leaving the agent unsure which generation endpoint to choose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this endpoint versus the five sibling generation/embedding endpoints, and no preconditions (auth, model availability) are mentioned. The agent is told what the endpoint supports but not when it is the right choice.

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