Skip to main content
Glama

FMF Tools AI

chat

Chat completion (small open models) ($0.002 per call, paid via MPP on Tempo). OpenAI-style chat with open-weight models on Cloudflare Workers AI: gemma-4-26b-a4b (default), granite-4-micro (fastest), gpt-oss-20b (all Apache-2.0). Send messages[] or a prompt; up to ~6k input tokens and 1,024 output tokens per call, flat price. Returns the reply, token usage and finish reason. Daily capacity is limited; when it is reached you get 402 and are not charged. HTTP POST https://mpp-ai.fmf-x402.workers.dev/mpp/chat. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
modelNo
promptNo
systemNo
messagesNo[{role: system|user|assistant, content}]
reasoningNoinclude the model reasoning text if it produces one (default false)
max_tokensNo1-1024 (default 512)
temperatureNo0-2 (default 0.6)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: flat $0.002 per call, ~6k input and 1,024 output token ceilings, the 402 daily-capacity failure mode with a no-charge guarantee, and the fact that the MCP wrapper does not itself settle payment. It also states what is returned (reply, token usage, finish reason). This is unusually complete behavioral disclosure for a paid mutation-like 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 purpose, then models, limits, price, and the payment/auth caveat, in a logical order. Slightly dense with some redundancy ('flat price' after the per-call price) but nearly every clause carries operational information.

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?

No output schema exists, so the description must explain returns, and it does (reply, token usage, finish reason). Pricing, capacity errors, token ceilings, auth requirements, and the raw HTTP fallback are all covered, leaving nothing an agent needs in order to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 57%, and the description compensates on the most decision-relevant parameter by naming the default model (gemma-4-26b-a4b) and the fastest one (granite-4-micro), plus restating the 1,024 max_tokens cap. It adds nothing for system, reasoning, or temperature, which is why it falls short of a 5.

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 and resource ('Chat completion ... OpenAI-style chat with open-weight models on Cloudflare Workers AI') and enumerates the exact models, defaults and speed tradeoffs. An agent knows precisely what it produces and which model backs it without opening the 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?

Gives a clear invocation mode ('Send messages[] or a prompt') and a crucial prerequisite for the paid route (MPP Payment Authorization header, or use mppx against the HTTP route). It does not explicitly contrast with the embeddings/rerank/translate siblings, but those tasks are self-evidently distinct, so no exclusion is needed.

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