Skip to main content
Glama

cortex_ai_chat

Single-turn chat completion via /v1/ai/chat (x402-paid). Returns model reply + usage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messagesYesOpenAI-style messages array

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It clearly states the stateless single-turn nature, indicates a paid endpoint via 'x402-paid', and describes the response as containing model reply plus usage. It does not mention authentication or error cases, but it covers the core behavioral traits.

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 short, direct sentences with no filler. The core purpose and endpoint are front-loaded, and the return behavior is stated immediately after.

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 low-complexity tool with a single fully documented parameter, the description is nearly complete: purpose, endpoint, paid nature, and return summary are all present. It leaves out details about authentication and the exact meaning of x402-paid, but those are not essential for an agent to invoke the tool correctly.

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?

The input schema already fully documents the only parameter, 'messages', including its OpenAI-style structure and role/content fields. The description adds no additional parameter semantics, so baseline 3 is appropriate.

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?

The description explicitly names the action (single-turn chat completion), the specific endpoint (/v1/ai/chat), and the return value (model reply + usage). This is clear enough to distinguish it from the optimization, research, and wallet-related sibling tools.

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?

The 'single-turn' qualifier implies when to use this tool, but there is no explicit guidance about alternatives or when not to use it. The description does not name any sibling tool or exclusion condition.

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.