Skip to main content
Glama

add_peer

Register a Neotoma peer (peer_config) for bidirectional sync: peer_url, entity_types allowlist, shared_secret for POST /sync/webhook verification. Governance entity types (e.g.

Instructions

Register a Neotoma peer (peer_config) for bidirectional sync: peer_url, entity_types allowlist, shared_secret for POST /sync/webhook verification. Governance entity types (e.g. issue, subscription) are refused from a peer until accept_governance_entity_types is set with correct on its peer_config; add_peer does not set it.

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": {
      "peer_id": "<peer_id>",
      "peer_name": "<peer_name>",
      "peer_url": "<peer_url>",
      "direction": "<direction>",
      "entity_types": "<entity_types>",
      "sync_scope": "<sync_scope>",
      "auth_method": "<auth_method>",
      "conflict_strategy": "<conflict_strategy>"
    },
    "name": "add_peer"
  }
}

Input Schema

NameRequiredDescriptionDefault
peer_idYes
peer_urlYes
directionYes
peer_nameYes
sync_scopeYes
auth_methodYes
entity_typesYes
shared_secretNoOptional; generated when auth_method is shared_secret and omitted.
conflict_strategyYes
sync_target_user_idNoOptional. Authenticated user_id on the peer instance for outbound POST /sync/webhook target_user_id.
peer_public_key_thumbprintNoOptional AAuth public-key thumbprint expected from this peer when auth_method is aauth.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0
  2. Removedv0.14.0
  3. Addedv0.12.1

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that governance entity types are refused until accept_governance_entity_types is set, but omits other mutation-relevant behavior: required permissions/auth, what happens if peer_id already exists (create vs. upsert), and whether the shared_secret is echoed back.

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 dense sentences that front-load the core action and then the governance-entity caveat. Terminology is compressed but every clause carries information; no filler.

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 an 11-parameter write operation with no annotations and no output schema, the description should cover idempotency/conflict on existing peers, auth requirements, and what is returned. Only the governance-entity restriction and a few parameters are addressed, leaving significant gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 27% across 11 parameters (8 required). The description clarifies peer_url, entity_types as an allowlist, and shared_secret's role in POST /sync/webhook verification, but says nothing about direction, sync_scope, conflict_strategy, auth_method, peer_id, or peer_name — most of the required surface remains unannotated.

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

Purpose4/5

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

States a specific verb and resource ('Register a Neotoma peer (peer_config)') plus the sync context, so an agent can tell this is peer creation rather than peer listing/removal/status. It does not explicitly name a sibling alternative, keeping it short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'for bidirectional sync' and there is a useful negative hint that add_peer does not set accept_governance_entity_types, but no explicit when-to-use vs. when-not statement and no named alternative for configuring governance entity types or for updating an existing peer.

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