Skip to main content
Glama

model_chat

Read-only

POST /v1/chat/completions and SDK language-model paths; full native body/options. Complete native body and headers; select protocol from the fixed supported paths. Exact model IDs are forwarded unchanged.

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": {
      "workspace": "<workspace>",
      "body": "<body>"
    },
    "name": "model_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
queryNo
headersNo
protocolNo
workspaceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior: the native body/headers are passed through intact and exact model IDs are forwarded unchanged (no alias resolution). It still says nothing about auth requirements, rate limits, error semantics, or what shape the response takes.

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 short and the endpoint list leads, which is good front-loading. However, sentences are compressed into near-ungrammatical fragments ('full native body/options', 'Complete native body and headers') and the second sentence partly repeats the first rather than adding information.

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?

This is a five-parameter passthrough with a free-form nested body, no output schema, and no schema descriptions, which demands more explanation than three terse sentences. Missing are the role of the required workspace, what happens to the native response, and any failure-mode behavior, leaving an agent under-equipped for a complex call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, yet it only touches on body, headers, and the protocol paths. The required 'workspace' parameter and the 'query' parameter are never mentioned anywhere, and the arbitrary nested body structure is left entirely unexplained beyond 'complete native body'.

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

Purpose3/5

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

The description names concrete endpoints (POST /v1/chat/completions, SDK language-model paths) so the agent can tell it is a raw chat-completions passthrough, but the phrasing is fragmented and telegraphic. It never explicitly contrasts itself with near siblings such as model_messages or model_responses, so an agent must infer which protocol endpoint to pick.

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?

The only usage-like instruction is 'select protocol from the fixed supported paths,' which is about a single enum parameter rather than when to use this tool at all. There is no statement of when to prefer it over model_messages/model_responses, and no prerequisites or exclusions.

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.