Skip to main content
Glama

ai_chat

One-shot chat completion with an optional system prompt. Good for drafting, rewriting, brainstorming and simple reasoning. Max 1024 output tokens. 0.01 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
promptYesInput text (max 20,000 characters)
systemNoOptional system prompt
maxTokensNo
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description still discloses the output token cap and per-call price via x402, which is useful behavioral context. It omits return format, error behavior, and payment flow details; those are partly covered by the schema but not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the core operation and followed by use cases, a hard limit, and price. No filler; each sentence adds useful information.

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?

The description covers core operation, use cases, token cap, and price, and the schema documents paymentProof mechanics. The main remaining gap is return-value behavior, since no output schema exists, but the tool is otherwise sufficiently specified for a one-shot completion.

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 75%, so the schema already documents prompt, system, maxTokens, and paymentProof. The description reinforces optional system prompt and max output tokens but adds no new syntax or constraints beyond the schema.

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?

The description names a specific operation, one-shot chat completion, and notes the optional system prompt. It does not differentiate itself from sibling AI tools such as ai_rewrite or ai_summarize, so it is clear but not fully sibling-aware.

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?

It lists suitable use cases (drafting, rewriting, brainstorming, simple reasoning), which implies when to use it. However, it gives no exclusions and does not direct the agent to specialized siblings like ai_rewrite or ai_summarize, leaving route selection ambiguous.

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.