Skip to main content
Glama

Ask Model (LLM Gateway)

ask_model
Read-only

437 models, no account, no API key, pay per call in USDC - OpenAI-compatible chat completions and AI inference gateway (Claude, GPT, Gemini, Llama, Mistral and more in one endpoint). Price: from $0.001, computed from your max_tokens × model rate × 1.10 (you sign a ceiling; unused tokens are not refunded). 20s server-side timeout - never charged if it fires; set your client timeout to 30s. Try GET /v1/chat/completions/sample.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYesOpenRouter model id from GET /v1/models, e.g. "openai/gpt-4o-mini".
messagesYesOpenAI-format chat messages: [{role, content}, ...].
max_tokensNoMax completion tokens, capped at 4096 - also bounds the x402 upto price ceiling.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
modelNo
usageYes
choicesYes
x402_receiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-idempotent, yet the description adds substantial behavior the annotations cannot: the exact price formula (max_tokens x rate x 1.10, ceiling signed, unused tokens not refunded), a 20s server-side timeout with no charge if it fires, and a recommended 30s client timeout. This is exactly the cost/timeout/auth context an agent needs before invoking a paid endpoint.

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-loaded with the core purpose and packed with high-value facts; almost every clause earns its place. It is dense to the point of being slightly run-on, but there is little fat to cut.

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 paid, keyless inference tool the description covers pricing, timeout semantics, auth requirements, and a discovery/sample endpoint, and an output schema already exists so return values need not be explained. Nothing essential to calling 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% and every parameter (model, messages, max_tokens) is already documented in the schema, so the description need only complement it. It reinforces that max_tokens bounds the x402 price ceiling, but adds no new format or syntax detail beyond the schema, 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?

States a specific verb+resource: an OpenAI-compatible chat completion / inference gateway aggregating 437 models. It clearly separates itself from single-model siblings like llm_gpt_mini by emphasizing '437 models ... in one endpoint', but it never names those siblings or explains why an agent would pick this gateway over them, so differentiation is implied rather than explicit.

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?

Gives concrete usage context: no account, no API key, pay per call in USDC, and points to GET /v1/chat/completions/sample as a try-it path. It does not state when NOT to use it or how it compares to the llm_* siblings, so the routing guidance is present but incomplete.

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.