Skip to main content
Glama

Agent Budget Router

optimize_task

Choose the best available free provider for an AI-agent research task based on task relevance and budget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
budgetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNo
errorNo
budgetNo
statusYes
resultsYes
attemptsYes
providerNo
fallback_usedYes
requested_providerNo
zero_out_of_pocketYes
recommended_providerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations are absent, so the description carries the full behavioral burden. It mentions selecting a 'free provider' but does not disclose side effects, whether it performs any mutation, API/auth requirements, or fallback behavior if no free provider is available.

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?

A single, front-loaded sentence with no wasted words. The verb 'Choose' comes first, and the criteria are stated compactly.

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

Completeness2/5

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

Output schema exists, so return values need not be explained. However, for a tool with a sibling execute_task and no annotations, the description omits when to route here instead, and leaves budget semantics and behavioral safety unaddressed.

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?

With 0% schema description coverage, the description partially compensates by naming both parameters conceptually: 'task' for relevance and 'budget' for cost. However, it does not explain budget units, the default value of 0, or task format, leaving meaningful gaps.

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: choose the best available free provider for an AI-agent research task. It adds selection criteria (task relevance, budget), making the purpose clear, but it does not differentiate from the sibling execute_task.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus execute_task or other alternatives. The description implies it is for provider selection before research, but leaves the routing decision entirely to inference.

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