Skip to main content
Glama

mesh_serve

Register a named procedure on the mesh; each inbound call runs the configured shell command with the caller's JSON payload on stdin and uses stdout as the JSON reply.

Instructions

Advertise a procedure on the mesh, answered by a local shell command run once per inbound call (its stdin is the caller's JSON payload, its stdout is the reply). Starts this process's own serve-daemon on first use. THIS IS A STANDING INBOUND SURFACE, not a one-shot action: once registered, any mesh caller can trigger the command repeatedly until mesh_unserve is called or this process exits. Never register a command you would not want a stranger able to run repeatedly on this machine. Pair with mesh_unserve to stop serving deliberately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
execYesShell command to run once per inbound call. Receives the call's JSON payload on stdin; its entire stdout is parsed as the JSON reply (empty stdout replies null).
hostNoStation to connect through, "host[:port]". Defaults to station-de-frankfurt.macula.io:4433.
procedureYesThe procedure name to advertise, e.g. "my_agent.summarize".
exec_timeout_secondsNoHow long one invocation may run before it's killed (default 10, max 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.28.7

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses that the tool starts its own serve-daemon on first use, that calls can be triggered repeatedly by any mesh caller, and that the command persists until mesh_unserve or process exit. It does not mention permission/trust requirements or failure modes, but the core behavioral risk is clearly disclosed.

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?

The description is compact, front-loads the core mechanism, and every sentence earns its place. The safety warning and pairing instruction are high-value additions, not filler.

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 tool with no output schema and no annotations, the description covers the invocation model, persistence, and safety. It could add what happens on daemon startup failure or how errors are returned, but the essential context an agent needs to call it correctly and avoid misuse is present.

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%, so the schema already documents all four parameters. The description adds the stdin/stdout contract and the standing-surface semantics, which enrich the exec parameter's meaning, but it does not add detail beyond the schema for host, procedure, or exec_timeout_seconds. Baseline 3 is appropriate.

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 ('Advertise a procedure on the mesh'), the resource (a procedure answered by a local shell command), and the exact execution model (run once per inbound call, stdin/stdout contract). It clearly distinguishes this from one-shot mesh operations and from mesh_unserve, its natural sibling.

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?

The description explicitly warns that this is a standing inbound surface, not a one-shot action, and tells the agent to pair with mesh_unserve to stop serving. It also gives a strong safety rule: never register a command a stranger could run repeatedly. This is explicit when-to-use and when-not-to-use guidance.

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