Skip to main content
Glama

Should I use a capability for this task?

evaluate_capability
Read-onlyIdempotent

Decide whether a registry capability is worth using or buying for your task, from registry-run benchmarks only. Use when: you have a task and want a recommend, do_not_recommend or undetermined answer with the arithmetic; name a capability to weigh only that one, or leave it out and the registry weighs its closest matches. Not for: one short answer without the arithmetic (resolve_task), a plain list of matches (search_capabilities), two to five named candidates side by side (compare_capabilities), or the break-even figures of one capability without a task (estimate_roi). Input: a plain task description; give model, expected_runs and baseline_cost_estimate_usd for a money estimate, and context for the conditions the capability declares. Output: ak.evaluation.v1 with decision, reasons, expected effect, price, confidence, operator_message, evaluation_id, next steps and an ak.offer.v1 offer (status, next_action, economics, the four evidence kinds listed apart). do_not_recommend is a normal answer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesPlain description of the task you are about to do (at most 4000 characters).
modelNoThe model you run on, e.g. claude-sonnet-5. Savings are reported only for measured models.
contextNoFacts about your situation, keyed by the capability's parameter names (e.g. log_lines).
capabilityNoCapability id (ak:publisher:name or ak:publisher:name:x.y.z), ak:// URI or slug.
constraintsNoLimits you set for the answer; a capability outside them is reported as blocked, with the reason code.
budget_policyNoYour operator's spending policy; the answer says whether a purchase fits it. Every purchase still needs human approval.
expected_runsNoHow many times you expect to perform this kind of task.
baseline_cost_estimate_usdNoWhat one run of this task costs you today without the capability, in USD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / budget_policy / properties / absolute_purchase_limit_usd / description
      Added value: +"The highest price in USD for one purchase; a price above it is outside the policy."
    • addedInput schema / properties / budget_policy / properties / auto_purchase / description
      Added value: +"When your operator allows a purchase without asking first: enabled (true or false), max_price_usd, and minimum_expected_roi (expected net saving divided by the price). The answer says whether the policy would allow it; these tools never charge."
    • addedInput schema / properties / budget_policy / properties / human_approval_required / description
      Added value: +"above_usd: a price above this amount in USD needs your operator's approval even where auto_purchase is enabled."
    • addedInput schema / properties / budget_policy / properties / monthly_budget_usd / description
      Added value: +"Your operator's budget for this month in USD."
    • addedInput schema / properties / budget_policy / properties / spent_this_month_usd / description
      Added value: +"What is already spent of that budget this month in USD (0 when left out)."
    • addedInput schema / properties / constraints / description
      Added value: +"Limits you set for the answer; a capability outside them is reported as blocked, with the reason code."
    • addedInput schema / properties / constraints / properties / max_cost_usd / description
      Added value: +"The highest price in USD you accept; a capability priced above it is blocked (over_max_cost)."
    • addedInput schema / properties / constraints / properties / minimum_confidence / description
      Added value: +"The lowest confidence in the measured saving you accept, from 0.5 to 0.999 (default 0.9); below it the answer is blocked (below_minimum_confidence)."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe read-only, idempotent, closed-world operation, and the description adds material context beyond them: 'these tools never charge', 'Every purchase still needs human approval', capabilities outside constraints are 'reported as blocked, with the reason code', and 'do_not_recommend is a normal answer' (guarding against an agent retrying on a negative verdict).

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?

Well front-loaded: purpose, then when, then not-for, then input, then output. It is long and dense (the output enumeration and 'the four evidence kinds listed apart' are heavy), but nearly every clause carries routing or contract information, so the size is largely earned.

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?

For an 8-parameter tool with nested objects and no output schema, the description supplies the missing return contract (ak.evaluation.v1 fields, ak.offer.v1, blocked statuses and reason codes) and the money-estimate input combination. An agent has everything needed to call it and interpret the result.

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 the baseline is 3, but the description adds real meaning: model/expected_runs/baseline_cost_estimate_usd are jointly required 'for a money estimate', and omitting capability makes the registry weigh its closest matches rather than failing. That interaction logic is not visible in the schema. It does not, however, explain the context-keying or budget_policy precedence beyond the schema's own text.

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?

States a specific verb (decide) and object (whether a registry capability is worth using or buying), and pins the scope to registry-run benchmarks only. The description explicitly differentiates itself from four named siblings, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

Contains an explicit 'Use when' clause plus a 'Not for' clause that names the alternative tool for each adjacent case: resolve_task for a bare answer, search_capabilities for a list, compare_capabilities for 2-5 candidates, estimate_roi for break-even without a task. It also clarifies the optional-capability branch (name one vs. let the registry weigh closest matches).

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