Skip to main content
Glama

Grant one agent run

gate_create_run

Gate Actions: give one agent session narrow, expiring permission. Actions are rules with {placeholders} bound by scope (e.g. "PATCH /customers/{customer}/tickets/:id" with scope {"customer":"A"}), each with an optional max and approval. Check gate_list_approvers for an active human approver before granting approval:true actions; create one on the setup endpoint, /mcp/setup if needed; without an active approver the grant is refused. Returns a run token (shown once) the agent sends as x-odile-run with its app key. Writes in a run need an Idempotency-Key. Give a write a check ("GET /bookings?idempotency_key={key}") and the agent can settle a lost answer with POST /g//_gate/recover.

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>",
      "admin_key": "<admin_key>",
      "app": "<app>",
      "actions": "<actions>"
    },
    "name": "gate_create_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app id (app_...) this run is for
labelNoOptional: what the run is for, e.g. "triage ticket 4411"
scopeNoValues for the {placeholders}, e.g. {"customer":"A"}
actionsYesRules, or {rule, max, approval, check}
admin_keyYesThe project admin key (ga_...). Read it from the .env; never print it.
max_callsNoOptional: calls allowed in the whole run
project_idYesThe project id from project creation on the setup endpoint (/mcp/setup), e.g. p1a2b3...
ttl_secondsNoHow long the run lasts (default 3600)

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

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, openWorld=true, idempotent=false), the description discloses the one-time run token, the required x-odile-run header, the refusal behavior without an active approver, the Idempotency-Key requirement for writes, and the _gate/recover escape hatch. These are exactly the operational facts an agent cannot infer 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core grant semantics and prerequisities are front-loaded, and the later sentences cover token handling and idempotent recovery without padding. It is dense and somewhat jargon-laden ('settle a lost answer'), which slightly taxes first-read comprehension.

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 an 8-parameter, nested-object mutation tool with no output schema, the description covers inputs, prerequisites, refusal conditions, the returned token, and the write/idempotency workflow. Nothing essential to invoking it correctly is absent.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: how {placeholders} are bound by scope, what 'check' must reference, and how approval interacts with the approver prerequisite. The optional max/ttl/max_calls interplay is left mostly to the schema.

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 opening sentence pairs a specific verb with a specific resource: 'give one agent session narrow, expiring permission,' which makes the create-run semantics concrete. It does not explicitly distinguish itself from siblings like gate_delegate_run or gate_revoke_run, though it names the approver-check tool as a prerequisite.

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 states a clear precondition and consequence: check gate_list_approvers before granting approval:true actions, create an approver on /mcp/setup if needed, and the grant is refused otherwise. What's missing is explicit guidance on when not to use this tool versus the delegation or update siblings.

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