Skip to main content
Glama

set_delegation_policy

DestructiveIdempotent

Set the maximum lifetime in days for workspace delegation grants to bound token exposure; omit or null to restore the 90-day default. Applies to grants issued afterward.

Instructions

Set the longest a delegation grant may live in this workspace, in days (1 to 3650); omit or null to restore the default of 90. A grant is the standing authority to keep minting delegated tokens, so this bounds real exposure. Applies to grants issued afterwards. Requires token:admin.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_delegation_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_grant_daysNogrant lifetime ceiling in days; null/omit = the default, 90

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds genuinely non-derivable behavior — the prerequisite token:admin and the fact that the change is non-retroactive ('applies to grants issued afterwards'), which explains why future exposure is what is being bounded.

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?

Three sentences, front-loaded with the action and units, then the default behavior, then the rationale and auth requirement. No filler; even the rationale sentence earns its place by motivating the bound.

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 a one-parameter, no-output-schema tool with annotations present, the description covers range, default/restore behavior, auth requirement, and scope of effect. An agent has everything needed to call it correctly and predict its impact.

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?

Schema coverage is 100% and the single parameter already documents range, null/omit semantics, and the default of 90. The description restates the same facts rather than adding format or edge-case meaning, so baseline 3 applies.

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?

The description states a specific verb and resource ('Set the longest a delegation grant may live in this workspace') plus units and range, so it is unmistakably the policy setter rather than get_delegation_policy or create_delegation_grant.

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?

It gives clear operational context: omit or null to restore the default of 90, applies only to grants issued afterwards, and requires token:admin. It does not name a sibling as an alternative, but the when-to-use condition (bounding exposure of future grants) is explicit.

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

Deploy Server

Other Tools