Skip to main content
Glama

agent-helper: free inference for AI agents

chat

Run a chat completion on a small open-weights model, charged to your token budget. Good for summarising, classifying, extracting and rewriting.

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": {
      "api_key": "<api_key>",
      "messages": "<messages>"
    },
    "name": "chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional. Omit to use the default model.
api_keyYesThe api_key returned by `register`.
messagesYesOpenAI-style messages: [{role, content}, ...].
max_tokensNoOptional. At most 8192.
temperatureNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral context. It usefully discloses that calls are charged to the token budget and that the model is a small open-weights model, but it omits rate limits, authentication requirements, error behavior, and output format details.

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?

The description is two concise sentences with the core purpose front-loaded and no wasted wording. Every sentence contributes useful information about scope, billing, or intended use.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter chat tool with no annotations and no output schema, the description is adequate but incomplete. It conveys the main purpose and cost model, but leaves return format, authentication, and behavioral limits to the schema or to inference.

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 80%, so the schema already documents most parameters, including api_key, messages, model, and max_tokens. The description does not add meaning beyond the schema for parameters such as temperature or max_tokens, so the baseline of 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?

The description states a specific verb and resource: "Run a chat completion on a small open-weights model." It clearly scopes the operation to a constrained model class and adds a billing detail, but does not explicitly differentiate from potential alternatives beyond the sibling names provided.

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?

It provides example use cases ("summarising, classifying, extracting and rewriting") but gives no explicit when-not-to-use guidance or named alternatives. Usage is implied through those examples, which is adequate but not strong.

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