Skip to main content
Glama

ai_chat

Send a prompt, get an answer from Llama 3.1 8B Instruct, with an optional system prompt, up to 1,024 output tokens and adjustable temperature. Use for drafting, reasoning steps, Q&A and any quick LLM call without an AI provider account. Costs $0.002 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON 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. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the write/open-world/non-idempotent profile, and the description adds genuinely new behavioral context not in structured data: the exact per-call cost ($0.002 USDC), the payment rail (x402 on Base), and the token ceiling. It does not cover latency or failure/refund behavior, which keeps it from a 5.

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?

Two sentences, zero filler: the first front-loads purpose, model, and limits, the second carries usage and cost. Nothing redundant and it is well ordered for an agent scanning for a quick decision.

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 still conveys what comes back (a text answer) and the key constraints an agent needs before invoking: model, token cap, temperature, and the fact that payment is required. It is complete enough to call correctly, though it omits any failure/timeout expectation.

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 every parameter (prompt, system, maxTokens, temperature) is already documented in the schema. The description restates the token cap and optional system prompt but adds no syntax, format, or interaction semantics beyond it, so the baseline 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?

The description gives a concrete verb+resource (send a prompt, get an answer) and even names the backing model (Llama 3.1 8B Instruct) with its output-token cap. It implies generic usage versus specialized siblings (ai_classify, ai_sentiment, ai_rewrite) through its open-ended use cases, but never names a sibling to route against, so it lands just short of a 5.

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?

It states when to use it: drafting, reasoning steps, Q&A, and 'any quick LLM call without an AI provider account.' That is clear context, but there is no when-not guidance or explicit routing to the many specialized ai_* siblings, so it stops at 4.

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