Skip to main content
Glama

Llama API

llm_llama
Read-only

Llama API - pay per call, no API key. OpenAI-format chat completions on meta-llama/llama-4-maverick, pinned to Parasail for reliability. You sign a fixed price computed from your max_tokens; unused tokens are not refunded. 20s server-side timeout - never charged if it fires; set your client timeout to 30s. Try GET /llm/llama/sample.

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

Input Schema

NameRequiredDescriptionDefault
messagesYesOpenAI-format chat messages: [{role, content}, ...].
max_tokensNoMax completion tokens, capped at 4096 - also bounds the price ceiling.

Output Schema

NameRequiredDescriptionDefault
idNo
modelNo
usageYes
choicesYes
x402_receiptNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Far exceeds the annotations: it discloses the billing model, that the signed price is fixed and unused tokens are not refunded, and that a 20s server-side timeout aborts without charge. Those are exactly the costly behavioral facts an agent needs and which readOnlyHint/openWorldHint cannot convey.

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?

Front-loaded with model identity, then cost, then timeout safety, then a sample endpoint — every sentence carries a distinct, decision-relevant fact with no filler or repetition.

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?

With only two parameters, a full output schema, and rich annotations, everything an agent needs to invoke it safely is present: message format, token cap, pricing behavior, timeout policy, and a discovery endpoint. Nothing material is missing.

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 100%, so baseline would be 3, but the description adds real meaning: max_tokens is the variable that sets the price ceiling and drives an irreversible charge. That causal link between a parameter and billing consequences goes beyond the schema's 'also bounds the price ceiling' phrasing.

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 states a specific verb and resource ('OpenAI-format chat completions') and pins the exact model ('meta-llama/llama-4-maverick', served via Parasail), which is precisely what distinguishes it from the llm_claude_sonnet and llm_gpt_mini siblings. An agent knows immediately what it gets and which model backs it.

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 gives strong operational guidance for choosing and configuring a call: pay-per-call with no API key, price derived from max_tokens, and a mandatory 30s client timeout to avoid premature cancellation. It stops short of an explicit 'use this instead of llm_gpt_mini when...' routing statement, so the alternative-selection logic is only implied by model name.

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.