Skip to main content
Glama

mesh_trust_agent

Add a trusted peer's node_id to the contact-policy allowlist so future rings skip the ask round-trip and auto-accept, without manual file editing.

Instructions

Add a peer's node_id to this operator's own contact-policy allowlist (~/.config/macula-mcp/contact_policy.json), so their NEXT ring skips the "ask" round-trip and is auto-accepted -- without hand-editing that file. Call this once you have decided a peer is trustworthy, e.g. right after mesh_answer_ring accepted their ring, or from mesh_ring's/mesh_agents' own node_id. If contact_policy is still the "ask" default, this also switches it to "allowlist" (an allowlist nobody is consulting does nothing); an explicit "closed" or "open" policy is left as-is (closed stays authoritative, open already accepts everyone) -- the reply says which happened. Keyed by node_id, never by operator_name, session_name, or petname: only node_id is a verified, signed identity here (see ring_service.ts's proof checks) -- operator_name/session_name are self-reported and petname can collide, none is safe as a trust boundary. The policy file re-reads on every ring, so this takes effect immediately, no restart needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesThe peer to trust: a node_id or petname from mesh_agents, mesh_ring's `to`, mesh_answer_ring's `peer`, or mesh_read_inbox's rings.pending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.28.7

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly: it names the file written, the policy side effect (ask -> allowlist, closed/open left as-is), that the reply reports which happened, and that changes take effect immediately with no restart. It also flags the mutation's asymmetry so the caller is not surprised.

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?

Front-loaded with the action and effect, then constraints; every clause carries distinct information (side effect, identity rationale, immediacy). Somewhat long for a single-parameter tool, but not padded.

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 a one-param mutation with no annotations and no output schema, it discloses the file touched, the policy mutation behavior, the return hint, and immediacy. Nothing needed to call it correctly is missing.

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 100%, so baseline is 3, but the description adds real meaning: node_id is the only verified signed identity, and operator_name/session_name/petname are unsafe as a trust boundary. That rationale goes well beyond the schema's list of value sources.

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?

States a specific verb+resource (add a peer's node_id to the operator's contact-policy allowlist) and its concrete effect (next ring auto-accepted, no ask round-trip). It is clearly distinguished from siblings mesh_untrust_agent and mesh_answer_ring.

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?

Explicitly says when to call it: 'once you have decided a peer is trustworthy, e.g. right after mesh_answer_ring accepted their ring, or from mesh_ring's/mesh_agents' own node_id.' The trigger conditions are concrete and tied to sibling workflows.

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