Skip to main content
Glama

inference

Chat-completion inference (standard messages request shape) against a six-model catalogue (see /api/v1/models). $0.01/call: pay $0.01 exact on Base or Solana, or authorize up to $1.00 with the Base "upto" scheme and still be charged $0.01.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoModel ID (see /api/v1/models)deepseek/deepseek-v4-flash
streamNoEnable SSE streaming
messagesYesChat messages array

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / messages / examples
      Added value: +[
      +  [
      +    {
      +      "content": "Say hello in five words.",
      +      "role": "user"
      +    }
      +  ]
      +]
  2. Changed1 schema field changed
    • removedInput schema / properties / max_tokens
      Removed value: -{
      -  "default": 2000,
      -  "description": "Defensively capped output tokens",
      -  "maximum": 2000,
      -  "type": "integer"
      -}
  3. Changed1 schema field changed
    • addedInput schema / properties / max_tokens
      Added value: +{
      +  "default": 2000,
      +  "description": "Defensively capped output tokens",
      +  "maximum": 2000,
      +  "type": "integer"
      +}
  4. Changed4 schema fields changed
    • removedInput schema / properties / max_tokens
      Removed value: -{
      -  "default": 4096,
      -  "type": "integer"
      -}
    • addedInput schema / properties / messages / items
      Added value: +{
      +  "type": "object"
      +}
    • addedInput schema / properties / model / default
      Added value: +"deepseek/deepseek-v4-flash"
    • addedInput schema / properties / stream
      Added value: +{
      +  "default": false,
      +  "description": "Enable SSE streaming",
      +  "type": "boolean"
      +}
  5. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose genuinely useful behavioral context beyond the schema: the $0.01 per-call cost, the two accepted payment rails (Base/Solana exact, Base 'upto' up to $1.00), and the fact the charged amount stays $0.01. It stops short of auth details, rate limits, latency, or error behavior.

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?

Two sentences, front-loaded with purpose before pricing. Efficient and free of filler, though the payment-mechanism clause is dense and could be trimmed.

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?

No output schema and no annotations, so the description must cover more. It handles purpose and cost well but says nothing about the response shape (completion object vs SSE chunks) or error conditions, which an agent calling a paid chat endpoint would benefit from knowing.

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%, so the baseline is 3. The description adds only that this is the 'standard messages request shape' and that model IDs live at /api/v1/models; it contributes nothing about the stream flag or message item structure beyond what the schema already documents.

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 (chat-completion inference) and resource (a six-model catalogue), and defines the request shape as 'standard messages'. It is clear what the tool does, though it never distinguishes itself from the sibling 'chat_completion', which appears to offer the same capability.

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 description offers no when-to-use guidance, no conditions for preferring this over the near-identical 'chat_completion' sibling, and no prerequisites beyond pointing at /api/v1/models for model IDs. Usage is only inferable from the name and schema.

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.