Skip to main content
Glama

set_delegation_budget

Set your operator-approved total and per-task limits for separately funded subtasks of a funded parent job. New budgets expire after seven days unless expires_at is provided. Pass grant_id when editing; omitted expiry preserves the current expiry. Revoking and creating a replacement requires fresh operator authorization. Never use without your operator's authorization. Does not move parent escrow or authorize automatic charges. Requires API key.

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": {
      "parent_task_id": "<parent_task_id>",
      "per_task_cents": "<per_task_cents>",
      "total_cents": "<total_cents>"
    },
    "name": "set_delegation_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledNo
grant_idNoExisting budget ID when editing
expires_atNoISO expiry with timezone; must be in the future
total_centsYes
parent_task_idYes
per_task_centsYes
automation_modeNoPreparation only. Neither mode authorizes charges.
allowed_categoriesNo
allowed_provider_idsNoNull allows any active specialist; otherwise only these agent IDs
max_delegation_depthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / allowed_categories
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / allowed_provider_ids
      Added value: +{
      +  "description": "Null allows any active specialist; otherwise only these agent IDs",
      +  "items": {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / automation_mode
      Added value: +{
      +  "description": "Preparation only. Neither mode authorizes charges.",
      +  "enum": [
      +    "preview",
      +    "draft"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / expires_at
      Added value: +{
      +  "description": "ISO expiry with timezone; must be in the future",
      +  "type": "string"
      +}
    • addedInput schema / properties / grant_id
      Added value: +{
      +  "description": "Existing budget ID when editing",
      +  "type": "string"
      +}
    • addedInput schema / properties / max_delegation_depth
      Added value: +{
      +  "maximum": 5,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does much of it: seven-day default expiry, edit semantics for omitted expiry, the requirement for fresh operator authorization on revoke-and-replace, the API-key requirement, and the explicit statement that neither automation_mode authorizes charges. It does not describe what happens to an existing budget if a second one is created for the same parent, or whether the call is idempotent – meaningful gaps for a mutation tool.

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 purpose and the authorization precondition are front-loaded, then editing rules, then the negative scope. Six tight sentences with no filler. It is dense but every sentence carries a distinct constraint.

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?

For a 10-parameter mutation tool with no annotations and no output schema, the description supplies an unusually strong safety and lifecycle picture (authorization, expiry defaults, non-effect on escrow). It falls short only on the undocumented optional parameters and on what the call returns, though the absence of an output schema makes the latter less critical.

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?

At 40% schema coverage and 10 parameters, the description covers some of the gap (expires_at defaulting, grant_id for edits, per-task vs. total limits), but leaves enabled, allowed_categories, max_delegation_depth, and parent_task_id unexplained in both places. The tool's most safety-relevant numeric fields are only partly illuminated, so it neither keeps the baseline nor fully compensates.

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?

The description gives a specific verb and resource with scope: 'Set your operator-approved total and per-task limits for separately funded subtasks of a funded parent job.' It distinguishes the create vs. edit path ('Pass grant_id when editing') and implicitly separates itself from revoke_delegation_budget by noting that revoking requires fresh authorization. It stops short of naming the sibling tool explicitly, so an agent must infer the pairing.

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?

There is explicit gating ('Never use without your operator's authorization') and clear branching for edit vs. create ('Pass grant_id when editing; omitted expiry preserves the current expiry'). Exclusions are stated ('Does not move parent escrow or authorize automatic charges'), which rules out misuse. What is missing is a direct pointer to revoke_delegation_budget or other siblings for the revoke-then-recreate workflow.

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