Skip to main content
Glama

Respond to a Request

respond_to_request
DestructiveIdempotent

Records a decision on a pending item addressed to the user (ids from get_my_inbox). decision: approve or deny a share request or offer (approve issues a grant; limitedScopes narrows it); accept_counter accepts a counter-offer and issues its grant (deny declines one); adopt or decline a recommendation. Only the party the item is waiting on may decide; an unknown id and an item that is not the user's return the same error. Decisions are final; an issued grant can later be revoked with revoke_setup_share. Returns the item's id and new status, plus the grant for approve and accept_counter. Adopting records the decision and installs nothing. [Bearer scope: decision approve: setup_share:request; decision deny: setup_share:request; decision accept_counter: setup_share:request; decision adopt: setup_share:status:read; decision decline: setup_share:status:read]

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": {
      "id": "<id>",
      "decision": "<decision>"
    },
    "name": "respond_to_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe request, counter-offer or recommendation id.
reasonNoOptional note recorded on the decision. Not accepted with adopt.
decisionYes
limitedScopesNoapprove only: the subset of the requested scopes to grant (at most 20 entries; repeated scopes are deduplicated).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Beyond the annotations (destructive, idempotent, openWorld), the description discloses that decisions are final, that adopting installs nothing, and that an unknown id and a non-owned item return the same error (enumeration protection). It also documents the return payload and the bearer scopes per decision. Minor gap: it doesn't explain why idempotentHint is true given finality, though this is inferable as repeat-same-decision safety.

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?

Dense but front-loaded: purpose first, then per-decision semantics, then error/return behavior, then scopes. The semicolon-chained sentences and the bracketed scope list make it slightly sprawling, but nearly every clause carries information an agent needs.

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?

Despite having no output schema, the description states what is returned (id, new status, grant for approve/accept_counter), covers authorization, finality, error semantics, and required bearer scopes. Nothing essential for correct invocation is missing for a 4-parameter mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema lists the decision enum values without describing their effects; the description supplies the semantics of all five values, including that approve issues a grant and limitedScopes narrows it. It also clarifies that reason is disallowed with adopt and that id comes from get_my_inbox, adding real meaning beyond the 75%-covered schema.

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?

Opens with a specific verb and resource: "Records a decision on a pending item addressed to the user," and immediately anchors the id parameter to its source tool (get_my_inbox). It clearly distinguishes itself from request_setup_share, propose_counter, and revoke_setup_share by being the decision-recording step.

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

Usage Guidelines5/5

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

Explicitly maps each decision value to its item type: approve/deny for share requests or offers, accept_counter for counter-offers, adopt/decline for recommendations. It also states the authorization precondition (only the party the item is waiting on may decide) and names revoke_setup_share as the follow-up path when a grant must be undone.

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