Skip to main content
Glama

Delegate a narrower run

gate_delegate_run

Hand a narrower run to another active app in the same project. Uses the parent app key and run token, never the admin key. Scope, expiry, approvals and ancestor budgets stay enforced; maximum depth five.

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": {
      "project_id": "<project_id>",
      "app_key": "<app_key>",
      "run_token": "<run_token>",
      "app": "<app>",
      "actions": "<actions>"
    },
    "name": "gate_delegate_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe destination app id
labelNoA short label for the delegated job
actionsYes
app_keyYesThe parent app key (gk_...)
max_callsNo
run_tokenYesThe parent run token (gr_...)
project_idYesThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
ttl_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"The project id from gate_create_project, e.g. p1a2b3..."New value: +"The project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3..."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a non-readonly, non-idempotent, open-world mutation with destructiveHint=false. The description adds genuinely new behavioral context: it uses the parent app key and run token rather than the admin key, and it discloses that scope, expiry, approvals, and ancestor budgets remain enforced with a maximum depth of five.

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?

Two dense sentences, each carrying weight, with purpose front-loaded before the auth and enforcement details. No filler or redundant restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, 5-required mutation tool with no output schema, the description covers purpose, credential model, and constraint inheritance well. It does not disclose what a successful delegation returns (e.g., a delegated run handle/id) or how the per-action approval flag behaves, leaving real gaps.

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 63%, and the description usefully clarifies that app_key and run_token are parent credentials (never the admin key). It says nothing about the actions format, max_calls, ttl_seconds, or the approval flag, leaving roughly a third of parameters to the schema alone.

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: handing a narrower run to another active app in the same project. The scope constraint (same project, another app, narrower) makes it distinguishable from gate_create_run, though no sibling is 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 Guidelines3/5

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

Usage is implied by 'narrower run to another active app in the same project' and the depth-five limit, but there is no explicit when-to-use versus gate_create_run or when-not guidance, and no stated prerequisites beyond the active-app condition.

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