Skip to main content
Glama

chat_inference

Run chat completion on Switch402 (every registered agent gets 10 free starter calls).

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": {
      "model": "<model>",
      "prompt": "<prompt>"
    },
    "name": "chat_inference"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel ID (e.g. "switch402/instant-test", "qwen/qwen3-32b")
apiKeyNoOptional ag_live_... key (if not passed in Authorization header)
promptYesUser prompt
systemNoOptional system instruction

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / apiKey
      Added value: +{
      +  "description": "Optional ag_live_... key (if not passed in Authorization header)",
      +  "type": "string"
      +}
  2. First observed

TDQS

C2.9/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 disclosure burden, and it only adds one behavioral fact: a 10-call free starter quota. It says nothing about what happens after the quota is exhausted, whether apiKey is required versus inferred from the Authorization header, latency/streaming behavior, or failure modes for an inference tool that presumably consumes credits.

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?

A single front-loaded sentence with no filler; the operation and the incentive are stated immediately. It is efficiently sized, though its brevity comes at the cost of the missing behavioral detail noted above.

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 four parameters, no annotations, and no output schema, the description should at minimum describe what a call returns (completion shape, errors). Instead it covers only the operation and the free-call allowance, leaving an agent unable to predict the response or the cost model after the starter calls.

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 model, prompt, system, and apiKey are already documented, including example model IDs. The description adds no meaning beyond the schema — no guidance on model selection tradeoffs or on system-prompt behavior — 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 ("Run chat completion") plus the platform it runs on (Switch402), which is enough to separate it from the sibling tools, all of which deal with agents, capabilities, wallets, or Lightning payments. It stops short of naming an alternative for chat-adjacent work, but the purpose itself is unambiguous.

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 when-to-use or when-not-to-use guidance, no advice on picking a model, and no mention of prerequisites (e.g. whether registration is required before calling). The parenthetical about free starter calls hints at cost but does not tell an agent when this tool 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