Skip to main content
Glama

allocate_budget

Greedily selects the most impactful verification tasks within a time budget. Use when CI minutes are limited or to decide what to verify before merging.

Instructions

Given a time budget in minutes, greedy-allocates the highest-leverage subset of verification targets that fits in that budget. Leverage formula: (tier-leverage × workflow-criticality × node-risk) / estimated-execution-cost-in-seconds. Tier-1 targets cost ~5s, Tier-2 ~30s, Tier-3 ~120s. Returns an ordered list — execute top-down. Use this when CI minutes are scarce or when an agent needs to pick what to verify before merging within a deadline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
minutesYesTotal minutes available for verification work. Typical values: 5 (quick PR check), 15 (default), 60 (pre-release sweep).
Behavior3/5

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

Describes algorithm and cost model but lacks explicit statement on side effects (e.g., read-only, no state modification). Without annotations, this is a gap for a computation tool that may be idempotent.

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?

Two sentences, front-loaded with purpose, then formula, then usage guidance. No wasted words.

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

Completeness4/5

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

Given single param and no output schema, description adequately covers purpose, algorithm, and execution instructions. Could mention edge case (empty return if budget too small) but not critical.

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

Parameters5/5

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

Adds significant value beyond schema: explains how 'minutes' is used as total budget, provides typical values, and ties to leverage formula for allocation decision.

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?

Clear verb+resource+method: 'greedy-allocates the highest-leverage subset of verification targets'. Leverage formula and cost estimates distinguish it from sibling tools like generate_verification_plan.

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?

Explicit context: 'Use this when CI minutes are scarce or when an agent needs to pick what to verify before merging within a deadline.' Could improve by contrasting with alternatives like generate_verification_plan.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vighriday/Veris'

If you have feedback or need assistance with the MCP directory API, please join our Discord server