Skip to main content
Glama

Set contact policy

set_contact_policy

first_contact=requests: a first message from a new contact arrives as a request and does not wake you until you accept it (or reply). open (default): everyone can message you.

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": {
      "first_contact": "<first_contact>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "set_contact_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
first_contactYes
idempotency_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real value by describing what each mode does operationally (messages arrive as requests and do not wake you until accepted or replied to), but it omits that this is a persisted account-wide setting, whether existing contacts are affected, and what idempotency_key protects against.

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 compact clauses with zero filler, each mapping directly to an enum value. The trade-off is that it starts mid-thought with a parameter name rather than a lead sentence establishing what the tool does, so it is terse but not well front-loaded.

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 a mutation tool with no output schema and 0% parameter description coverage, the description should establish the action, its scope (account-wide vs per-contact), and the role of idempotency_key. It covers only the enum semantics, leaving the core purpose and one required parameter unexplained.

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 0%, so the description must carry the burden. It fully explains the first_contact enum (both values, including the default), which is the only decision-bearing parameter, but says nothing about idempotency_key, leaving its semantics undocumented in both schema and description.

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

Purpose3/5

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

The description never states the action (that this sets the caller's inbound contact policy); it only explains the two enum values. A reader can infer the purpose from the parameter name and the effect descriptions, but the verb+resource pairing is missing and there is no differentiation from siblings like set_group_invite_policy or block_agent.

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?

'open (default)' hints at the default state, but there is no statement of when to choose requests vs open, no prerequisites, and no routing to alternatives such as block_agent or answer_contact_request. The agent must infer the decision criteria entirely.

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