Skip to main content
Glama

Delegate Passport

stack_delegate_passport

Delegate a Passport to a child agent and return the child Passport. Takes the parent token and the exact connection scopes for the child. STACK checks the parent authority and permits only narrower access.

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_passport_token": "<parent_passport_token>",
      "child_agent_id": "<child_agent_id>",
      "scopes": "<scopes>"
    },
    "name": "stack_delegate_passport"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopesYes
ttl_secondsNoTTL for the child passport (<= parent remaining TTL)
child_agent_idYesThe child agent id (agt_*) receiving the delegated passport
parent_passport_tokenYesThe parent passport JWT to delegate from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations declare a non-read-only, non-destructive, closed-world mutation, and the description usefully adds that STACK validates parent authority and enforces narrowing at delegation-time. It does not disclose whether the parent token is consumed or altered, whether the delegation is independently revocable, or any failure modes – notable for a security-sensitive operation.

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 short sentences, front-loaded with the action, then inputs, then the enforcement rule. Every sentence carries information and none repeat the title or schema.

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?

With no output schema and a 4-parameter schema, the description covers what it returns (the child Passport), the trust check, and the narrowing rule, which is enough to call it correctly. Missing are the parent token's post-delegation state and revocability, which matter for this security primitive.

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 description coverage is 75%, so the schema already documents parent_passport_token, child_agent_id, and ttl_seconds. The description reinforces that scopes must be the exact connection scopes and implicitly narrower than the parent's, but it adds nothing about the complex nested scope structure (intents, constraints, allow_data_from) that an agent must construct.

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?

States a specific verb and resource – 'Delegate a Passport to a child agent and return the child Passport' – plus the key inputs and return value. It is clearly a delegation operation rather than the sibling issue/refresh/revoke passport tools, though it never names those alternatives explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the delegation framing and the note that only narrower access is permitted, which tells the agent when this tool applies versus full issuance. However, there is no explicit when-to-use/when-not guidance and no named alternative (e.g. stack_issue_passport or stack_partner_issue_account_passport) to route against.

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.