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. 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.

Input Schema

TableJSON 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 gate_create_project, e.g. p1a2b3...
ttl_secondsNoHow long the run lasts (default 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / actions / description
      Previous value: -"Rules, or {rule, max, approval}"New value: +"Rules, or {rule, max, approval, check}"
    • changedInput schema / properties / actions / items / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "approval": {
      -        "type": "boolean"
      -      },
      -      "max": {
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "rule": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "rule"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "approval": {
      +        "type": "boolean"
      +      },
      +      "check": {
      +        "description": "For a write: the GET that finds it by key, e.g. \"GET /customers/{customer}/bookings?idempotency_key={key}\"; it must also be a GET action of the run",
      +        "type": "string"
      +      },
      +      "idempotent": {
      +        "description": "With check: the API dedupes on Idempotency-Key, so a not-found write may be retried",
      +        "type": "boolean"
      +      },
      +      "max": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "rule": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "rule"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true; the description goes well beyond that by disclosing that the token is shown once, how it is transmitted (x-odile-run with the app key), the Idempotency-Key requirement for writes, and the recovery endpoint. It does not contradict the write/non-destructive annotation profile.

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?

Roughly 90 words, front-loaded with the core effect, and no sentence is pure filler. However, it reads as one dense paragraph that braids token issuance, idempotency rules and an edge-case recovery endpoint together, which slightly obscures what the primary call does.

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?

For an 8-parameter creation tool with nested action objects and no output schema, the description supplies the missing return detail (a one-time run token, shown once) and the auth/idempotency contract. Remaining gaps (e.g. what else the response contains, interplay of max_calls vs per-action max) are minor since the schema covers those fields.

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 a concrete rule example ('PATCH /customers/{customer}/tickets/:id' with scope {"customer":"A"}) that clarifies how the actions, scope, check and approval fields interrelate in a way the schema alone does not.

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 first sentence states a specific effect: give one agent session narrow, expiring permission, and the token issuance is spelled out later ('Returns a run token (shown once)'). This distinguishes it from siblings like gate_create_project or gate_set_app_runs, though the framing as 'Gate Actions' is jargon-heavy rather than plainly saying 'create a run'.

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

Usage Guidelines2/5

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

The description explains operational conditions (writes need an Idempotency-Key, give a write a check so the agent can recover) but never says when to choose this tool over its siblings such as gate_set_app_runs, nor states prerequisites or exclusions. Usage must be inferred from the mechanics.

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