Skip to main content
Glama

Run a chat completion through the broker

chat

Sends messages to the broker (OpenAI chat completions). model defaults to taylor (strongest measured model); any id from list_models works. routing sets criteria per request, e.g. {"category": "coding", "level": "best"}. Needs Authorization: Bearer ast_sk_… — billed like the REST API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNotaylor
promptNoShortcut for a single user message
routingNo
messagesNo
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds genuinely new behavioral context: the Authorization header format and that calls are billed like the REST API. It does not disclose rate limits, error behavior, or the shape of the returned completion.

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?

Four dense sentences, front-loaded with what the tool does before moving to model defaults, routing, and auth. Nothing is redundant, though the routing example and auth note are packed tightly without much separation.

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-object, open-world generation call with no output schema, the description covers model selection, routing, and billing but omits the return format, how `messages` vs `prompt` interact, and any constraints on max_tokens. Functional but with real gaps.

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 only 20%, with just `prompt` documented inline, so the description must compensate. It clarifies `model` (default taylor, ids from list_models) and gives a concrete `routing` example, but leaves `messages`, `max_tokens`, and the routing schema itself unelaborated.

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 specific verb and resource: sends messages to the broker using OpenAI chat completions. It references list_models as the source of model ids, which implicitly frames the sibling relationship, but never explicitly contrasts the two tools' roles.

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

Usage Guidelines3/5

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

It gives useful invocation context (model defaults to taylor, routing accepts criteria per request), but never says when to choose this tool over list_models or what a typical flow looks like. Usage is implied through the parameter hints rather than stated.

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