Skip to main content
Glama

granite chat completions

granite_chat_completions
Read-only

OpenAI-compatible chat completions on IBM Granite 4.0 Micro, the lowest-cost chat here, with tool calling (131K context). Set your OpenAI SDK base URL to https://agentrxi.com/v1/granite and pay per token with x402 instead of an API key: $0.051 per million input and $0.336 per million output tokens, minimum $0.002 a call, at most $0.0049. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenAI (tool calling, streaming supported), up to 4096 output tokens. Costs $0.0049 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoIgnored; always granite-4.0-micro
toolsNoOpenAI function tools
streamNo
messagesYes
max_tokensNo
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial context beyond them — x402 pay-per-token instead of an API key, the base URL to configure, per-token and per-call pricing with min/max bounds, and how the 402 quote and 'upto' billing behave. That is exactly the operational detail an agent needs to actually call 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.

Conciseness3/5

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

The core facts are front-loaded, but the cost is stated redundantly — '$0.0049' appears both as the per-call maximum and again as a standalone final sentence, and pricing spans several clauses. Trimming the duplicated billing sentence would tighten it without losing 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?

With no output schema, the description correctly notes the response matches OpenAI's shape and documents streaming, tool calling, and output-token limits, plus the payment/auth model. It covers what an agent needs to invoke the endpoint, with only per-parameter details left thin.

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 only 33% (only model and tools are documented; messages, stream, max_tokens, temperature are bare). The description partially compensates by noting streaming and tool-calling support and a 4096 output-token cap, but it adds no guidance on temperature, message formatting, or the ignored model field beyond what the schema already says.

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?

States a specific verb+resource (OpenAI-compatible chat completions) and pins the exact backing model (IBM Granite 4.0 Micro), which is essential given the dozens of sibling *_chat_completions tools. It also supplies the differentiator — 'the lowest-cost chat here' — so an agent can separate it from gemma/llama/mistral/qwen variants 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?

Provides a clear selection signal (cheapest chat, supports tool calling, 131K context, OpenAI request/response shape) that tells an agent when this model is the right pick. It stops short of an explicit when-not or a named alternative, so routing still relies on inference rather than stated exclusions.

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