Skip to main content
Glama

Request Approval

request_approval

Ask the ActivitySmith account owner for a decision or a choice before you act. Sends a Time Sensitive Push Notification to their iPhone; tapping it opens a review screen in the ActivitySmith app that shows everything you include, where they approve, reject, or type a reply. Waits up to 45 seconds. If the result is pending, call wait_for_approval repeatedly with the returned approval ID, which stays valid across client timeouts and reconnects. The result status is approved, rejected, replied, chosen, timed_out (after 30 minutes), or cancelled. When it is replied, read the reply text and act on it; do not run the operation unless the reply says to. When it is chosen, do what selected_option says. Give the user what they need to decide: execution_context and scope for a command or tool call, changes for file edits, links to a pull request, preview, docs, or anything else that helps them check the work, and screenshots (upload them first with prepare_screenshot_upload). To let the user pick between alternatives, send 2 to 4 options instead of approve and reject. Otherwise choose action-specific approve_label and reject_label values, such as Send and Cancel or Deploy and Hold.

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": {
      "question": "<question>"
    },
    "name": "request_approval"
  }
}

Input Schema

NameRequiredDescriptionDefault
linksNoOptional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, issue, docs, or video. They open in the app's browser, so use links that work on a phone. To show an image, attach it as a screenshot instead of linking to the file.
scopeNoOptional primary scope for the decision. For local shell commands, provide working_directory with the full current working directory. Otherwise use the most decision-relevant project, environment, customer, account, or resource. Omit when no meaningful scope exists.
changesNoOptional summary of the file changes the operation makes or ships, such as a commit or deploy. Line counts only, never file contents and never a per-file list. The user sees the file count, the line totals, and the top file names.
detailsNoOptional context that helps the user decide: what you did, what happens if they approve, and any risk. Shown in full on the review screen.
optionsNoOptional 2 to 4 choices instead of approve and reject, such as two designs or how to handle a failure. The user picks one or replies. Mark at most one as recommended. approve_label and reject_label are ignored when options are set.
questionYesThe decision the user needs to make, as one short question. It is the Push Notification title and the review screen heading.
screenshotsNoOptional screenshots the user can view and zoom on the review screen. Upload each file first with the curl command from prepare_screenshot_upload, then list the returned IDs here.
reject_labelNoOptional alternative action label. Choose a clear outcome such as Cancel, Keep Draft, or Don't Send. Defaults to Reject.Reject
approve_labelNoOptional positive action label. When approving a specific action, prefer a concrete verb such as Send, Deploy, Publish, or Delete. Defaults to Approve.Approve
execution_contextNoOptional structured context for the specific operation awaiting approval. Include it for commands and tool calls; omit it for question-only decisions.
target_channel_slugsNoAdvanced optional targeting for team accounts. Omit to notify the account-wide default devices.

Output Schema

NameRequiredDescriptionDefault
approvalYes
next_actionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / links / description
      Previous value: -"Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, issue, docs, or video. They open in the app's browser, so use links that work on a phone."New value: +"Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, issue, docs, or video. They open in the app's browser, so use links that work on a phone. To show an image, attach it as a screenshot instead of linking to the file."
  2. Changed1 schema field changed
    • changedInput schema / properties / links / description
      Previous value: -"Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, or issue."New value: +"Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, issue, docs, or video. They open in the app's browser, so use links that work on a phone."
  3. Changed1 schema field changed
    • changedInput schema / properties / changes / properties / top_files / description
      Previous value: -"Names of the 2 most changed files (1 when only one file changed), most changed first. Send them: older app versions leave the changes out without both names."New value: +"Names of the 2 most changed files (1 when only one file changed), most changed first."
  4. Changed7 schema fields changed
    • changedInput schema / properties / changes / description
      Previous value: -"Optional summary of the file changes the operation makes or ships, such as a commit or deploy. Line counts only, never file contents. The user sees the totals and the most changed files."New value: +"Optional summary of the file changes the operation makes or ships, such as a commit or deploy. Line counts only, never file contents and never a per-file list. The user sees the file count, the line totals, and the top file names."
    • removedInput schema / properties / changes / properties / files
      Removed value: -{
      -  "description": "One entry per changed file.",
      -  "items": {
      -    "properties": {
      -      "added": {
      -        "description": "Lines added in this file.",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "path": {
      -        "description": "File path, relative to the repository root when there is one.",
      -        "maxLength": 500,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "removed": {
      -        "description": "Lines removed in this file.",
      -        "maximum": 9007199254740991,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "path",
      -      "added",
      -      "removed"
      -    ],
      -    "type": "object"
      -  },
      -  "maxItems": 200,
      -  "minItems": 1,
      -  "type": "array"
      -}
    • addedInput schema / properties / changes / properties / files_changed
      Added value: +{
      +  "description": "Number of changed files.",
      +  "maximum": 1000000,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / changes / properties / lines_added
      Added value: +{
      +  "description": "Lines added across all files.",
      +  "maximum": 1000000000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / changes / properties / lines_removed
      Added value: +{
      +  "description": "Lines removed across all files.",
      +  "maximum": 1000000000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / changes / properties / top_files
      Added value: +{
      +  "description": "Names of the 2 most changed files (1 when only one file changed), most changed first. Send them: older app versions leave the changes out without both names.",
      +  "items": {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 2,
      +  "type": "array"
      +}
    • changedInput schema / properties / changes / required
      Previous value: -[
      -  "files"
      -]New value: +[
      +  "files_changed",
      +  "lines_added",
      +  "lines_removed"
      +]
  5. Changed9 schema fields changed
    • removedInput schema / properties / appearance
      Removed value: -{
      -  "description": "Optional pending Live Activity appearance. Customize its tint, SF Symbol, and badge. This does not change Push Notifications or resolved approval states.",
      -  "properties": {
      -    "badge": {
      -      "properties": {
      -        "color": {
      -          "description": "Badge color. Defaults to the Live Activity tint.",
      -          "enum": [
      -            "lime",
      -            "green",
      -            "cyan",
      -            "blue",
      -            "purple",
      -            "magenta",
      -            "red",
      -            "orange",
      -            "yellow",
      -            "gray"
      -          ],
      -          "type": "string"
      -        },
      -        "title": {
      -          "description": "Short badge label such as Agent, Email, Deploy, or Production. Defaults to Agent.",
      -          "maxLength": 24,
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "color": {
      -      "description": "Pending Live Activity tint. Defaults to blue.",
      -      "enum": [
      -        "lime",
      -        "green",
      -        "cyan",
      -        "blue",
      -        "purple",
      -        "magenta",
      -        "red",
      -        "orange",
      -        "yellow",
      -        "gray"
      -      ],
      -      "type": "string"
      -    },
      -    "icon": {
      -      "properties": {
      -        "color": {
      -          "description": "Icon color. Defaults to the Live Activity tint.",
      -          "enum": [
      -            "lime",
      -            "green",
      -            "cyan",
      -            "blue",
      -            "purple",
      -            "magenta",
      -            "red",
      -            "orange",
      -            "yellow",
      -            "gray"
      -          ],
      -          "type": "string"
      -        },
      -        "style": {
      -          "description": "Icon rendering style. Defaults to filled.",
      -          "enum": [
      -            "filled",
      -            "outline"
      -          ],
      -          "type": "string"
      -        },
      -        "symbol": {
      -          "description": "SF Symbol name for the pending Live Activity. Defaults to sparkles.",
      -          "maxLength": 64,
      -          "minLength": 1,
      -          "type": "string"
      -        }
      -      },
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / changes
      Added value: +{
      +  "description": "Optional summary of the file changes the operation makes or ships, such as a commit or deploy. Line counts only, never file contents. The user sees the totals and the most changed files.",
      +  "properties": {
      +    "files": {
      +      "description": "One entry per changed file.",
      +      "items": {
      +        "properties": {
      +          "added": {
      +            "description": "Lines added in this file.",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "path": {
      +            "description": "File path, relative to the repository root when there is one.",
      +            "maxLength": 500,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "removed": {
      +            "description": "Lines removed in this file.",
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "path",
      +          "added",
      +          "removed"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "files"
      +  ],
      +  "type": "object"
      +}
    • removedInput schema / properties / delivery
      Removed value: -{
      -  "default": "auto",
      -  "description": "Optional delivery preference. auto prefers a Live Activity and falls back to a Push Notification.",
      -  "enum": [
      -    "auto",
      -    "live_activity",
      -    "push_notification"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / details / description
      Previous value: -"Optional short context that helps the user decide."New value: +"Optional context that helps the user decide: what you did, what happens if they approve, and any risk. Shown in full on the review screen."
    • changedInput schema / properties / details / maxLength
      Previous value: -1500New value: +4000
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "Optional links that help the user check the work before deciding, such as a pull request, deploy preview, dashboard, or issue.",
      +  "items": {
      +    "properties": {
      +      "title": {
      +        "description": "Readable title, such as the pull request title or Staging preview.",
      +        "maxLength": 120,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "https URL the user can open in the app's browser.",
      +        "format": "uri",
      +        "maxLength": 2000,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • addedInput schema / properties / options
      Added value: +{
      +  "description": "Optional 2 to 4 choices instead of approve and reject, such as two designs or how to handle a failure. The user picks one or replies. Mark at most one as recommended. approve_label and reject_label are ignored when options are set.",
      +  "items": {
      +    "properties": {
      +      "id": {
      +        "description": "Short stable ID you will get back as selected_option_id, such as left or replay_all. Letters, digits, hyphens, or underscores.",
      +        "maxLength": 64,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "label": {
      +        "description": "What this option does, in a few words. The review screen letters options A to D in this order.",
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "recommended": {
      +        "description": "Mark the one option you would pick. At most one.",
      +        "type": "boolean"
      +      },
      +      "screenshot_id": {
      +        "description": "One of this request's screenshots that shows this option.",
      +        "maxLength": 64,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "label"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "minItems": 2,
      +  "type": "array"
      +}
    • changedInput schema / properties / question / description
      Previous value: -"The decision the user needs to make."New value: +"The decision the user needs to make, as one short question. It is the Push Notification title and the review screen heading."
    • addedInput schema / properties / screenshots
      Added value: +{
      +  "description": "Optional screenshots the user can view and zoom on the review screen. Upload each file first with the curl command from prepare_screenshot_upload, then list the returned IDs here.",
      +  "items": {
      +    "properties": {
      +      "id": {
      +        "description": "Screenshot ID returned by the upload from prepare_screenshot_upload.",
      +        "maxLength": 64,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Short caption, such as Test results or New settings page.",
      +        "maxLength": 60,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "id"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations flag this as a non-read-only, open-world, non-idempotent call, and the description goes well past them: 45-second wait, approval ID survives client timeouts and reconnects, full status enumeration including a 30-minute timed_out, and the consequence of each status for the agent's next action. That is exactly the behavioral detail an agent needs before firing a blocking request.

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?

Purpose and delivery channel are front-loaded, then status handling, then content guidance, then options vs. labels — a logical order with no filler sentences. It is on the long side and the status enumeration and content guidance could be compressed slightly, but every sentence carries actionable instruction.

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 11-parameter, nested-object, blocking human-in-the-loop tool, the description covers lifecycle (create, wait, timeout), all outcomes, and what to put in the payload for each decision type. An output schema exists, yet the status handling is still explained because it drives the agent's branching, which is the right call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description adds cross-parameter routing rather than repeating field docs: execution_context and scope for commands/tool calls, changes for file edits, links for PRs and previews, and screenshots that must be uploaded first via prepare_screenshot_upload. It also states the precedence rule that approve_label and reject_label are ignored when options are supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Ask the ActivitySmith account owner for a decision or a choice') and pins down the delivery mechanism (Time Sensitive Push Notification to iPhone, review screen in the app). It also names the sibling it hands off to when the result is pending ('call wait_for_approval'), so an agent can distinguish it from the other approval tools without opening a schema.

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

Usage Guidelines5/5

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

Explicit branching rules: pending means call wait_for_approval with the returned ID; replied means read text and do not run the operation unless told to; chosen means follow selected_option. It also states when to send options instead of approve/reject (2 to 4 alternatives) and gives concrete label examples like Send/Cancel or Deploy/Hold.

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