Skip to main content
Glama

Accept or decline a shared alert

answer_invitation
Idempotent

Accept or decline an invitation link the person received, the same as opening it in the app. It only works for the invited email address. Accepting costs nothing; results are delivered only after choose_shared_channel and confirm_shared_channel.

Permission: alerts:write.

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": {
      "invitation_url": "<invitation_url>",
      "accept": "<accept>"
    },
    "name": "answer_invitation"
  }
}

Input Schema

NameRequiredDescriptionDefault
acceptYestrue accepts; false declines.
invitation_urlYesThe full invitation link the person received.

Output Schema

NameRequiredDescriptionDefault
dataNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare non-destructive, idempotent, closed-world behavior, yet the description still adds meaningful context beyond them: the invited-email restriction, that accepting incurs no cost, and that effects are deferred until two later tools run. The explicit 'alerts:write' permission requirement is exactly the kind of auth prerequisite annotations do not convey.

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?

Four short sentences, each carrying distinct information: purpose, scope restriction, cost/sequencing behavior, and permission. The distinguishing details are front-loaded and nothing is repeated from the title or schema.

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

Completeness5/5

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

For a two-parameter tool with an output schema and full annotation coverage, the description supplies everything else an agent needs: the auth scope, the identity constraint on the link, and the multi-step delivery model. No likely question about correct invocation is left open.

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%, with the boolean accept flag and the URL constraints already documented, so the baseline is 3. The description earns an extra point by adding a real constraint on invitation_url — it must be the link tied to the invited email address — which the schema does not express.

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

Purpose5/5

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

States a specific verb pair (accept/decline) on a specific resource (invitation link) and pins the semantics with 'the same as opening it in the app.' It also differentiates itself from downstream siblings by naming choose_shared_channel and confirm_shared_channel as the steps that actually deliver results.

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 clear context for use: it applies to an invitation link the person received and only works for the invited email address. The sequencing hint ('results are delivered only after choose_shared_channel and confirm_shared_channel') tells the agent this is not a terminal action. It lacks an explicit when-not-to-use or failure-condition statement, keeping it below 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