Skip to main content
Glama

Register an app

gate_create_app

Give one app its own key and the calls it may make. Routes are rules like "GET /orders/:id", "POST /orders", "GET /users/{user}/orders" (per-user), or example calls like "GET /orders/42", which become rules allowing any id. Returns key (shown once), app.id and normalized rules. Send key as Authorization: Bearer to the project gateway; never send the admin key to the workload.

Input Schema

NameRequiredDescriptionDefault
nameYesThe app name, e.g. "storefront" or "nightly sync"
runsNoWhether calls need a Gate Actions run (x-odile-run). Default writes: the app's writes need a run. Use off for a model or MCP gateway, where every call is a POST, or for direct writes; template apps default to off (their writes are held for approval).
modelsNoFor a model API: the only models this app may ask for, exact names or a prefix ending in * (e.g. ["gpt-4.1-mini", "claude-haiku-*"]). Omit for no model limit.
routesNoOnly the calls this app makes, one "METHOD /path" per item
templateNoReady-made API policy: reads allowed, risky writes held, destructive calls refused. Explicit routes replace the entire template policy. Free and Pro; configure the project upstream first. See /templates.
admin_keyYesThe project admin key (ga_...). Read it from the .env; never print it.
max_callsNoPro: optional lifetime call allowance for this app. Rotation preserves its count.
expires_atNoPro: optional future ISO time with timezone, at most 30 days from creation. Rotation preserves this expiry.
per_minuteNoCalls per minute for this app (default 60)
project_idYesThe project id from gate_create_project, e.g. p1a2b3...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / runs
      Added value: +{
      +  "description": "Whether calls need a Gate Actions run (x-odile-run). Default writes: the app's writes need a run. Use off for a model or MCP gateway, where every call is a POST, or for direct writes; template apps default to off (their writes are held for approval).",
      +  "enum": [
      +    "off",
      +    "writes",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "stripe",
      -  "github",
      -  "shopify",
      -  "hubspot",
      -  "supabase",
      -  "slack",
      -  "recall"
      -]New value: +[
      +  "stripe",
      +  "github",
      +  "shopify",
      +  "hubspot",
      +  "supabase",
      +  "slack",
      +  "recall",
      +  "quickbooks",
      +  "xero"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / template / enum
      Previous value: -[
      -  "stripe",
      -  "github",
      -  "shopify",
      -  "hubspot",
      -  "supabase",
      -  "slack"
      -]New value: +[
      +  "stripe",
      +  "github",
      +  "shopify",
      +  "hubspot",
      +  "supabase",
      +  "slack",
      +  "recall"
      +]
  4. Changed2 schema fields changed
    • addedInput schema / properties / expires_at
      Added value: +{
      +  "description": "Pro: optional future ISO time with timezone, at most 30 days from creation. Rotation preserves this expiry.",
      +  "format": "date-time",
      +  "type": "string"
      +}
    • addedInput schema / properties / max_calls
      Added value: +{
      +  "description": "Pro: optional lifetime call allowance for this app. Rotation preserves its count.",
      +  "maximum": 100000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  5. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) only establish that this is a non-destructive write. The description adds genuinely non-obvious behavior: the key is shown only once, what the response contains (key, app.id, normalized rules), and the security rule that the admin key must never reach the workload. It also discloses rule normalization semantics, which an agent cannot infer from the schema.

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?

Four sentences, all load-bearing: purpose and key semantics first, then return values, then the Bearer instruction. The route-syntax sentence is dense with examples but each example illustrates a distinct form. No filler or restatement of the name.

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 10 parameters, no output schema and a 100% covered schema, the description does its share: it explains what is returned, the one-time key, and the route format that the schema only sketches. The notable omission is the template path — the schema requires routes or template, yet the description only discusses routes. Prerequisite ordering (create project first) is likewise 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 description coverage is 100%, so a baseline of 3 applies, but the description goes further by explaining the route grammar — path parameters such as :id and {user}, and that a concrete example like 'GET /orders/42' becomes a rule allowing any id. That normalization behavior is not derivable from the schema's 'one METHOD /path per item'. It does not cover the template-vs-routes alternative (anyOf), which is left 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 description states a specific verb and resource: give one app its own key plus the calls it may make, returning key, app.id and normalized rules. That is far more precise than the title 'Register an app'. It does not name or distinguish itself from siblings like gate_manage_app_key (rotation) or gate_configure_app, leaving that differentiation to the schemas.

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?

There is no when-to-use or when-not-to-use guidance: nothing tells the agent to prefer gate_manage_app_key for rotating an existing app versus creating one, and no prerequisite (project must exist, admin key needed) is stated. The only guidance offered — how to send the returned key to the gateway and not to expose the admin key — is post-invocation operational advice rather than invocation selection.

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