Skip to main content
Glama

onchaincheck

ai_chat

LLM chat completion, flat $0.003 a call: send a prompt (plus optional system) or an OpenAI-style messages array and get the reply text with token usage. Models: gpt-oss-20b (default), qwen3-30b, glm-4.7-flash, llama-4-scout. Up to 16,000 characters in and 1,024 tokens out; json=true for JSON output. Costs $0.003 USDC on Base via x402.

Input Schema

NameRequiredDescriptionDefault
jsonNotrue asks for a single JSON object
modelNoModel (default gpt-oss-20b)
promptNoThe user message (or send an OpenAI-style messages array instead)
systemNoOptional system instructions
max_tokensNoMost tokens to generate, up to 1024
temperatureNo0 to 2 (default 0.6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the cost ($0.003 per call), the payment rail (USDC on Base via x402), the input cap (16,000 characters), the output cap (1,024 tokens) and the return contents. It omits failure behavior (what happens if payment or the model call fails) and latency/retry expectations.

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?

Dense and front-loaded: capability first, then models, then limits, then price. The price is stated twice ('flat $0.003 a call' and '$0.003 USDC on Base via x402'), which is mild redundancy but the second instance does add the payment mechanism.

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?

For a six-parameter, no-annotation, no-output-schema tool, the description covers models, input forms, size limits, output contents and payment. The main gap is the phantom messages-array input and the absence of any failure or payment-flow guidance.

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%, so parameters are already documented; the description adds the input/output size limits and the json=true flag. However it advertises an 'OpenAI-style messages array' alternative that does not exist in the schema (additionalProperties: false, only a single 'prompt' string), which is a real input-form inconsistency rather than added clarity.

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 concrete verb+resource ('LLM chat completion') and precisely what goes in and comes back ('send a prompt... get the reply text with token usage'). It does not reference the obvious sibling ai_chat_pro, so the agent must infer the difference from the flat price and small model list rather than being told.

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

Usage Guidelines3/5

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

Usage is implied by the pricing and the small model/size limits (a cheap, capped chat call), but there is no explicit 'use this instead of ai_chat_pro when...' or when-not guidance, despite a directly competing sibling in the tool list.

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