Skip to main content
Glama

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

ai_model_gpt_oss_20b
Read-only

Chat with OpenAI's open-weight gpt-oss-20b 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-20b" on the OpenAI-compatible /v1/chat/completions. No account or provider key. Use when an agent wants this model by name. Example: prompt=Explain x402 in one sentence.. Price $0.002/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.

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. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-idempotent, and the description goes well beyond them: exact price ($0.002/call via x402 USDC or card key /credits), failed calls are free, each call is charged so retries cost money, no account or provider key required, and the 1,024 output-token ceiling. That is precisely the cost/auth/retry context an agent needs before invoking.

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?

Front-loads the model identity and access method, then pricing and safety in a tight sequence; nearly every sentence earns its place. Minor blemishes: the example 'prompt=Explain x402 in one sentence..' has a doubled period and is marginally decorative.

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

Completeness5/5

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

For a four-parameter chat tool with no output schema, the description covers what comes back (the answer, capped at 1,024 tokens), how to pay, that no key is needed, and that calls are billed individually. Nothing an agent needs to call it correctly is missing.

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 prompt, system, maxTokens and temperature are already documented with ranges and defaults. The description restates prompt/system and the token cap and adds a worked example, but adds no format or interaction semantics beyond the schema — baseline 3 applies.

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

Purpose5/5

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

States a specific verb+resource (chat with OpenAI's gpt-oss-20b reasoning model) plus the access path (one paid HTTP call, or the OpenAI-compatible /v1/chat/completions as model "gpt-oss-20b"). It explicitly distinguishes itself from the generic ai_chat and from its size sibling gpt_oss_120b by naming the exact model and telling the agent to use it 'when an agent wants this model by name.'

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 selection condition versus the generic chat siblings, and the price note hints at cost trade-offs. It stops short of explicitly naming an alternative for when cost or the larger 120B model matters, so no exclusion is spelled out.

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.