Skip to main content
Glama

request_permission

Idempotent

Request local approval to run a development command by specifying its command, arguments, working directory, reason, and scope. Users can approve exact arguments, a subcommand, or a program.

Instructions

Request local approval. Set requested_scope to ask for an entire program, a subcommand, or exact arguments.

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": {
      "command": "<command>",
      "args": "<args>",
      "cwd": "<cwd>",
      "reason": "<reason>"
    },
    "name": "request_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdYesAn existing local directory given as an absolute path.
argsYesOne argument per array element. Use [] for no arguments.
reasonYesDescribe why the command is needed. Set requested_scope to specify the scope.
commandYesA single program name or executable path.
requested_scopeNoprogram allows every subcommand and argument. subcommand fixes the first item in args and allows the remaining arguments to change. exact requires all arguments to match. The user chooses the actual scope. Check it with permission_status.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (idempotent, non-destructive, closed-world). The description usefully adds that requested_scope is only a request — "The user chooses the actual scope" appears in the schema, and the description frames it as asking for a scope — but it never says whether the call blocks awaiting user input, what happens on denial, or how long approval persists.

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 short sentences with no filler, and the core action is front-loaded. The second sentence largely duplicates the requested_scope schema text, which slightly reduces its value.

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

Completeness2/5

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

For a 5-parameter, 4-required approval tool in a family with run_command and permission_status, the description omits the essential workflow context: whether this must precede execution, what denial means, and whether the call is blocking. An output schema exists, so return values need not be explained, but the usage gap is substantial.

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 description coverage is 100%, including a full explanation of exact/subcommand/program, so the schema already carries parameter meaning. The description restates the same scope trichotomy without adding syntax examples, defaults, or interaction details beyond it.

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

Purpose3/5

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

"Request local approval" states a verb and a resource, but never says approval for what — the reader has to infer from the schema fields (command/args/cwd) that this is approval to execute a command. It also does not differentiate itself from the sibling run_command or explain its relationship to permission_status.

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 gives no when-to-use guidance: nothing says to call this before run_command, or when to prefer it over just executing. The only routing hint ("Check it with permission_status") sits inside the schema, not the tool description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.