Skip to main content
Glama

get_delegation_policy

Read-onlyIdempotent

Retrieve your workspace's delegation policy to check the maximum grant duration in days and whether the default 90-day limit applies.

Instructions

Return your workspace's delegation policy {workspace_id, max_grant_days, is_default}. max_grant_days is the longest, in days, that a delegation grant may live, and is_default is true when the workspace has set nothing and the default of 90 days applies. Change it with set_delegation_policy and list existing grants with list_delegation_grants. Takes no arguments. Requires workspace:read.

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": "get_delegation_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (which already declare readOnly, idempotent, non-destructive, closed-world), the description adds the required auth scope (workspace:read), the meaning of max_grant_days, and the important semantic that is_default=true means no policy was set and a 90-day default applies. That default-fallback behavior is the kind of context an agent cannot get from structured fields.

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 compact sentences, front-loaded with what is returned, then field semantics, then sibling routing and preconditions. No filler or repetition of the tool name.

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, so the description's field-level explanation of the return object is exactly what's needed. Combined with the auth requirement, the no-argument note, and the default-90-day explanation, an agent has everything required to call and interpret this tool.

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?

The tool takes zero parameters, so the baseline is 4 and there is no parameter meaning to add. The description instead documents the return fields, which is useful but is not parameter semantics.

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 and resource ("Return your workspace's delegation policy") and even enumerates the returned fields {workspace_id, max_grant_days, is_default}. This is clearly distinguishable from set_delegation_policy and list_delegation_grants, which are named explicitly.

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?

Explicitly routes the agent: read the policy here, change it with set_delegation_policy, and enumerate existing grants with list_delegation_grants. It also states "Takes no arguments," removing any ambiguity about whether parameters are needed before calling.

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