Skip to main content
Glama

SaaS Pro Max

Execute command

execute_command
Destructive

Execute a command the user asked for. A routine command (execution: direct in get_command_schema) runs at once without authorizationId. Any other command runs once after approval, with exactly the fields, target and reason used by prepare_command, a matching authorizationId and the member's current membership, token scope and fresh passkey session. Destructive, external and privileged actions retain all domain safeguards.

Input Schema

NameRequiredDescriptionDefault
appNoApplication id or orgSlug/appSlug for an app command
orgYesOrganization slug or id
filesNoOptional form files, base64 encoded, up to 4 MiB each. File field names come from get_command_schema.
fieldsYesExact fields from get_command_schema. Use strings, repeated string arrays, and serialized JSON for JSON fields. Do not include org, app or _csrf.
reasonYesThe user's reason for this exact change
commandIdYesExact id from list_commands
environmentNoproduction
authorizationIdNoFrom prepare_command; omit only for a direct command

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the approval workflow, the requirement for a matching authorizationId, current membership, token scope and a fresh passkey session, and that destructive/external/privileged actions retain domain safeguards. This adds substantial operational context that annotations alone do not convey.

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 description is front-loaded and has no wasted framing, but the second sentence is dense and packs multiple authorization constraints into one long clause. It remains readable and appropriately sized for a complex tool.

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 a destructive, open-world command execution tool with eight parameters and no output schema, the description covers the critical usage path, approval requirement and prerequisite checks well. It does not describe the execution result or failure behavior, which leaves a minor completeness gap.

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 already high at 88%, but the description adds useful cross-tool semantics: fields, target and reason must match those used by prepare_command, and authorizationId is omitted only for direct commands. It does not add much about commandId, org, app, environment or files beyond the schema, so it is not a full 5.

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?

The description states a specific verb and resource ("Execute a command") and immediately distinguishes routine direct execution from approval-gated execution. It names sibling tools get_command_schema and prepare_command, so an agent can tell how this tool fits with them without opening other definitions.

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 clearly says a routine command marked execution: direct runs immediately without authorizationId, while any other command requires approval and an authorizationId from prepare_command. The routing is strong, though it does not explicitly spell out the full call sequence or state what to do if prepare_command has not been called.

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