Skip to main content
Glama

remote_exec

Idempotent

Run named recipes on configured SSH hosts, allowing only pre-authorized commands. Restrict remote execution to allowlisted content for security.

Instructions

Run a NAMED recipe on a configured SSH host (never free-form shell). Host and recipe must exist in connections config; remote argv must be on the host allowlist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesSSH host profile name
repoNoRepository name
formatNotoon (default) | json
paramsNoJSON object of recipe params, e.g. {"lines":"100","path":"/var/log/nginx/error.log"}
recipeYesRecipe name on that host
timeout_secondsNoTimeout (default 30, max 120)
Behavior4/5

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

Annotations already indicate idempotent and non-destructive. Description adds that execution is restricted to named recipes and pre-configured hosts, which is useful beyond annotations. No contradiction found.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence with parenthetical clarification, no filler. Front-loads the core purpose and constraints efficiently.

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?

Covers core purpose, constraints, and preconditions adequately. Lacks details on output format or error behavior, but given no output schema and 6 parameters, the description is sufficiently complete for an agent to use the tool correctly.

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 has 100% parameter descriptions, so baseline is 3. Description does not add parameter-level detail but reinforces the overall constraints (e.g., 'remote argv must be on the host allowlist') which indirectly relates to the params parameter.

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?

Description clearly states the action ('Run'), the resource ('named recipe on a configured SSH host'), and explicitly excludes free-form shell, distinguishing it from potential siblings like remote_list or agent_execute_todo.

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?

Provides explicit context: only named recipes, no free-form shell, prerequisites (host and recipe must exist, argv allowlisted). Does not name alternative tools but effectively tells when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VeyrForge/codehelper'

If you have feedback or need assistance with the MCP directory API, please join our Discord server