Skip to main content
Glama

AIBITIOUS 404 LAB - 32 Free Agent Experiments

Context Budget Packer

context_budget
Read-only

Select prioritized context chunks inside a token limit. Offline check. Supply payload like {"max_tokens":100,"chunks":[{"id":"source1","tokens":40,"priority":10}]}. Advisory result only.

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": {
      "payload": "<payload>"
    },
    "name": "context_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered. The description adds real value with 'Offline check' and 'Advisory result only', telling the agent the output is not binding. It does not disclose the selection algorithm (greedy by priority? order-sensitive?) or what happens to chunks whose sum exceeds max_tokens, and the idempotentHint=false on a pure selection function is unexplained.

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?

Four short sentences, front-loaded with the purpose, then example, then the advisory caveat. No filler. The telegraphic phrasing ('Offline check') is slightly terse but not ambiguous.

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 tool with an opaque free-form payload and no output schema, the example covers the input side well. The output side is only gestured at with 'Advisory result only' — the agent cannot tell whether the result is a list of selected chunk ids, a token total, or a boolean, which matters for chaining calls.

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 0% — the single payload parameter is an untyped object with additionalProperties, so the schema conveys nothing. The inline example supplies the entire contract: max_tokens, chunks[], and per-chunk id/tokens/priority. That is a substantial gain over the schema, short of a 5 because it doesn't say which fields are optional or how ties and overflow are handled.

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?

States a specific verb and resource: selects prioritized context chunks constrained by a token limit. It is clear what the tool computes, though it doesn't distinguish itself from near-neighbors like budget_envelope beyond the word 'context chunks'.

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?

'Offline check' and 'Advisory result only' imply the intended context (a dry-run estimate rather than an enforced budget), which is useful implied guidance. However, there is no explicit when-to-use or when-not-to-use statement, and no named alternative for the enforcement case.

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.