Skip to main content
Glama

chat

Read-only

Cohere-compatible Chat (v1) — Drop-in for Cohere's v1 Chat API (POST /v1/chat): send {message, chat_history?, preamble?, documents?, max_tokens?, temperature?} and get {text, chat_history, finish_reason, meta.billed_units} back, served by Llama 3.3 70B. chat_history roles USER/CHATBOT/SYSTEM; documents (array of objects) ground the answer. Also accepts a messages[] array. Non-streaming. Point a Cohere v1 client at https://api.polyform.org and pay per call with x402 - no API key. Price: $0.01 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesIn one sentence, what is the x402 payment protocol?

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint/openWorldHint), it discloses the payment model and price ('$0.01 USDC (Base, via x402)'), the no-API-key auth path, the non-streaming limitation, the serving model, and the exact response fields {text, chat_history, finish_reason, meta.billed_units}. That is exactly the operational context an agent needs before paying per call.

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 identity and endpoint, then constraints, then pricing — a sensible order. Slightly redundant, since x402 payment is mentioned twice ('pay per call with x402' and 'Price: $0.01 USDC (Base, via x402)'), and the single paragraph is dense.

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 one-parameter generation endpoint with no output schema, the description covers return shape, model, streaming behavior, and payment mechanics well. The remaining gap is the mismatch between the advertised optional parameters and the schema's single 'message' property, which could leave an agent unsure whether chat_history/documents are actually accepted.

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 description adds real meaning (chat_history roles USER/CHATBOT/SYSTEM, documents grounding answers, optional messages[]), but it advertises parameters (chat_history, preamble, documents, max_tokens, temperature, messages[]) that do not exist in the input schema, which only defines 'message'. Schema coverage is nominally 100%, though the single schema description is a sample prompt rather than a definition, so the description neither fully compensates nor stays consistent with the schema.

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 names a specific resource and compatibility target ('Cohere-compatible Chat (v1) — Drop-in for Cohere's v1 Chat API (POST /v1/chat)'), plus the serving model (Llama 3.3 70B). This lets an agent distinguish it from the sibling OpenAI-style surfaces (messages, chat_completions) without opening any schema.

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 clearly states the migration context ('Point a Cohere v1 client at https://api.polyform.org') and constraints ('Non-streaming', 'no API key'). It does not explicitly say when to prefer this over ai_chat or messages, so the alternative-selection guidance is implied via the 'Cohere-compatible' framing rather than stated.

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