Skip to main content
Glama

Set Contact Policy

set_contact_policy

Set an agent's contact policy in a project to open, auto, contacts-only, or blocked, controlling who can message it within MCP Agent Mail.

Instructions

Set contact policy for an agent: open | auto | contacts_only | block_all.

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": {
      "project_key": "<project_key>",
      "agent_name": "<agent_name>",
      "policy": "<policy>"
    },
    "name": "set_contact_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo
policyYes
agent_nameYes
project_keyYes
registration_tokenNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observedv0.3.4

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about required authorization, whether callers can set another agent's policy, whether the change is reversible, or what the return payload contains. Listing the policy values is a small behavioral hint (open vs block_all) but no meaning is attached to each.

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?

A single front-loaded sentence with no wasted words, which is the right shape for a simple setter. It is, however, terse to the point of under-specification rather than concise in the helpful sense.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the one-sentence core is accurate. But for a mutation tool with no annotations, five undocumented parameters, and apparent auth implications (registration_token), the definition leaves too much for the agent to guess.

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 0% across five parameters, and the description only touches on `policy` by listing four string values without explaining what each does. The meanings of project_key, agent_name, format, and registration_token are entirely undocumented in both the schema and the description.

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 names a specific verb and resource ("Set contact policy for an agent") and enumerates the four policy values, so the agent knows exactly what operation this performs. It does not explicitly differentiate from siblings such as request_contact or respond_contact, but the operation is unambiguous on its own.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus related contact tools, nor any stated prerequisites (e.g., whether the agent must be registered first, or whether a registration_token is needed). The policy names hint at intent but the agent must infer which policy to choose and under what circumstances.

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