Skip to main content
Glama

Sergio by Serviche

Attach a relay contact's emails to a client

attach_relay_contact
Idempotent

Says who a marketplace relay address really is: attaches every email the relay contact brought to the real client's conversation and moves the relay address onto that client, as the relay thread's Link to a contact does. relayClientId is the relay contact, clientId the real client (read clients). Writes a routing correction to the activity log. Pass the same idempotency_key when retrying; a repeat returns the first result.

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": {
      "relayClientId": "<relayClientId>",
      "clientId": "<clientId>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "attach_relay_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientIdYes
relayClientIdYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already mark this as a mutating but non-destructive, idempotent call. The description adds real behavioral detail: it moves the relay address, writes a routing correction to the activity log, and explains that reusing the idempotency key returns the first result, which goes beyond the schema's generic wording. It does not describe the permissions required or what a normal successful response contains.

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?

It is three dense sentences that front-load the core action, then parameter roles, then side effects and retry behavior. There is no filler or repetition.

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 three-parameter mutation tool with no output schema, it covers identity, effect, side effect, and retry semantics. It is slightly incomplete because it does not say what happens if the relay contact or client is already linked, nor what is returned on success beyond the idempotent replay case.

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 description coverage is only 33%; only idempotency_key is documented in the schema. The description compensates by assigning meaning to both UUIDs: relayClientId is the relay contact and clientId is the real client, and it points to reading clients. The retry semantics for idempotency_key are restated with the detail that a repeat returns the first result.

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?

The description uses a concrete verb-plus-resource: it attaches all emails from a relay contact to the real client and moves the relay address onto that client. This sets it apart from general linking tools, but it does not name a sibling such as move_address_to_contact or link_conversation_to_client, so the comparison to neighboring tools is left implicit.

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?

It gives contextual cues: relayClientId is the relay contact, and clientId is the real client (read clients). However, it never states when to choose this tool over alternatives or what preconditions must hold, such as whether the relay contact must still be an active relay or what happens if the client is already linked.

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