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 (~1344 avg).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "post_messages"
  }
}

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

B3.1/5.0
Behavior3/5

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

No annotations exist, so the description carries full burden; it does disclose feature surface (multimodal inputs, multi-turn, tool use, extended thinking, prompt caching) and that billing is metered at roughly 1344 credits per call, which is genuinely useful. It says nothing about authentication, rate limits, error modes, or whether requests are stateless versus stateful.

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?

It is front-loaded and only a few sentences, but the middle sentence is a dense feature dump that mixes capabilities of the endpoint with model-dependent behavior. The billing note earns its place; the capability list is largely restating what any Claude chat endpoint does.

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

Completeness3/5

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

For a nested-body, no-output-schema tool with zero annotations, the definition covers what features exist but not what a successful or failed call looks like, nor how message history must be structured. It is enough to attempt a call, not enough to call it correctly in edge cases.

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 nested body object already includes a worked example with model and messages. The description adds no additional meaning about body fields, required keys, or defaults, so the baseline of 3 applies.

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?

States a specific verb and resource: generating conversational responses with Claude models, via the Anthropic messages endpoint. It does not distinguish itself from siblings like post_chat_completions, post_responses, or post_generateContent, which could equally plausibly handle a chat request.

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 pick this endpoint over the other completion-style siblings in the catalog. The description only enumerates capabilities, leaving the agent to infer selection from the endpoint name alone.

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