Skip to main content
Glama

Can I afford this task on my plans right now?

can_afford_task
Read-only

For agents deciding whether to start a task: given the plans you own, how much of each is used, optionally the plan you are on now, and the task size, returns verdict go | wait | switch, which plan to use, reasons and reset windows. Reuses the route_task logic. Task size is a labeled heuristic (vendors don't publish per-task usage). size: small = One file or a quick question; medium = A feature across a few files (tens of minutes); large = A long refactor or multi-hour agent run. Plan ids: claude-pro, claude-max, claude-ultra, codex-free, codex-go, codex-plus, codex-pro, cursor-free, cursor-plus, cursor-premium, cursor-super, cursor-ultra, copilot-free, copilot-pro, copilot-pro-plus, copilot-max, antigravity-individual-free, antigravity-google-ai-pro, antigravity-google-ai-ultra, windsurf-free, windsurf-pro, windsurf-max.

Input Schema

NameRequiredDescriptionDefault
sizeNosmall | medium (default) | large
taskNo
plansYes
currentNoplan id you are using now

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered; the description adds real value beyond that by disclosing the output verdict vocabulary, the fact that reset windows and reasons come back, and the important caveat that task size is a labeled heuristic because vendors don't publish per-task usage. It stops short of describing cost, latency, or what happens when plans are omitted/invalid.

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?

The first sentence front-loads the decision context and return contract, which is the right structure. The 23-id plan enumeration is bulky and could be delegated to list_plans/get_tool_plans, but it does carry genuine signal because the schema provides no enum for 'plan'.

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?

There is no output schema, and the description covers what comes back (verdict, plan, reasons, reset windows) closely enough for an agent to act on it. Combined with the read-only annotation and explicit heuristic caveat, nothing essential for calling or interpreting the tool 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?

With only 50% schema coverage, the description compensates well: it defines the size labels (small/medium/large) with concrete examples, states the acceptable plan ids explicitly since the schema leaves 'plan' as an unconstrained string, and clarifies the 'current' parameter as the plan in use now. The 'task' parameter is left unexplained in both schema and description, which is the remaining gap.

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?

A specific verb-and-resource statement with the decision context ('for agents deciding whether to start a task') and a concrete return contract: verdict go | wait | switch, a recommended plan, reasons and reset windows. It is clearly distinguishable from siblings like route_task and pick_plan because it frames the question as affordability rather than routing or selection.

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?

The opening clause gives a clear when-to-use context: an agent about to start a task with a known plan set and estimated size. However, it does not explicitly say when to use route_task or pick_plan instead, even though it notes it 'reuses the route_task logic' - that is a relationship hint, not a routing rule.

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