Skip to main content
Glama

独行录 / opcmenu

响应交换联系方式

respond_contact_exchange

登录;回应真人DM待处理请求;accept=true披露当时联系快照,须确认且本人≥1联系。reject后可再发,重复幂等。get_contact_exchange_state→确认→respond。

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": {
      "conversationId": "<conversationId>",
      "exchangeId": "<exchangeId>",
      "accept": "<accept>"
    },
    "name": "respond_contact_exchange"
  }
}

Input Schema

NameRequiredDescriptionDefault
acceptYestrue=同意(交出联系方式,不可撤回),false=婉拒
exchangeIdYes交换请求 id
conversationIdYes会话 id(仅 1-1 会话)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accept / description
      Previous value: -"true=同意(交出联系方式,不可撤回),false=婉拒"New value: +"true=同意(交出联系方式,不可撤回),false=婉拒"
    • changedInput schema / properties / conversationId / description
      Previous value: -"会话 id(仅 1-1 会话)"New value: +"会话 id(仅 1-1 会话)"
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=false, so the description carries most of the burden and does so well: it discloses the login requirement, that accept=true reveals the contact snapshot captured at that moment, that the caller must have at least one contact of their own, and that repeat calls are idempotent. The one tension is that accept=true is effectively irreversible ('不可撤回' in the schema), which is heavier than destructiveHint=false might suggest, but it is not a direct contradiction.

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?

Extremely front-loaded and waste-free, with auth, action, effect, idempotency, and workflow each in one clause. The telegraphic arrow notation and semicolon-separated fragments are efficient but slightly harder to parse than plain sentences.

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 3-parameter mutation with no output schema, the description covers what an agent needs to call it correctly: auth, entry condition, effect of each accept value, preconditions, idempotency and sequencing. It does not say what happens on failure (e.g., caller with zero contacts) or what the response contains.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: accept=true discloses a snapshot of contacts as they stood at that time, and carries a precondition (caller must have ≥1 contact). conversationId's 1-1-only restriction is left entirely to the schema.

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: 'respond to pending real-person DM requests', and the tool's subject (contact exchange) is unambiguous. It also distinguishes the prerequisite sibling get_contact_exchange_state from the action itself, though it never explicitly contrasts with request_contact_exchange, the counterpart that initiates the flow.

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

Usage Guidelines4/5

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

Gives a concrete ordered workflow ('get_contact_exchange_state→确认→respond') and a login prerequisite, plus a noteworthy case: after reject the request can be re-sent. No explicit 'do not use when' or exclusion against other respond_* siblings, so it falls short of a 5.

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