Skip to main content
Glama

GPT-OSS 120B chat API: pay per call, no API key

ai_model_gpt_oss_120b
Read-only

Chat with OpenAI's open-weight gpt-oss-120b reasoning model (Apache 2.0) through one paid HTTP call: send a prompt and an optional system prompt, get the answer, up to 1,024 output tokens. Also reachable as model "gpt-oss-120b" on the OpenAI-compatible /v1/chat/completions. No account or provider key. Use when an agent wants this model by name. Example: prompt=Explain HTTP status code 402 in one sentence.. Price $0.01/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
promptYesUser prompt, up to 8,000 characters
systemNoOptional system prompt, up to 2,000 characters
maxTokensNoMaximum output tokens, 1-1024 (default 400)
temperatureNo0-1.5 (default 0.6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / maxTokens / maximum
      Previous value: -9007199254740991New value: +1024
    • changedInput schema / properties / maxTokens / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish read-only, non-destructive, non-idempotent and open-world, and the description adds materially new behavior: $0.01 per call, payment via x402 USDC or a card key, failed calls are free, and repeats are billed again. The 'reads or computes only and changes nothing' clause is consistent with readOnlyHint=true, and the billing/repeat warning is exactly the kind of context annotations cannot express.

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?

Pricing, purpose, and the routing cue are front-loaded, and each clause carries information. Minor clutter: the inline example ends with a stray double period, and the alternative-endpoint sentence competes with the primary usage statement.

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

Completeness4/5

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

With no output schema, the description correctly describes the return (the model's answer, capped at 1,024 output tokens) and covers auth (none needed), cost, and failure billing. It does not describe the response envelope or error shape beyond 'failed calls free', leaving a small gap for an HTTP-call tool.

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 100% and all four parameters carry their own descriptions and bounds, so the schema does the heavy lifting. The description restates prompt, optional system prompt, and the 1,024 output-token cap without adding syntax or format detail beyond the schema, which is the baseline-3 case.

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 (chat with the open-weight gpt-oss-120b model) and identifies the exact model string, so it is distinguishable from the other ai_model_* siblings. It stops short of naming an alternative sibling for contrast, but the model-by-name framing is a strong differentiator.

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

Usage Guidelines4/5

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

"Use when an agent wants this model by name" gives a clear routing condition, and the OpenAI-compatible /v1/chat/completions mention clarifies the alternate access path. No explicit when-not-to-use or sibling comparison (e.g. vs gpt-oss-20b or ai_chat), which keeps it below a 5.

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