Skip to main content
Glama

Reject a request

reject_request
Destructive

Record this user's rejection of a request that is waiting on their decision. A decision of record — confirm with the user first. Fails if the user is not the current approver. Two-step: call with confirmed=false (the default) first for a preview with NOTHING recorded yet; call again with confirmed=true to record it. A confirmed=true call with no matching preview from this connection in the last 10 minutes is run as the preview instead, and writes nothing. One preview admits one attempt, so a call that fails needs a new one. If the server cannot reach its preview store it does not hold the call back, so always preview first regardless. A preview also lapses once the request changes, someone else's decision on it included, so the next call previews it again.

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": {
      "ar_identifier": "<ar_identifier>"
    },
    "name": "reject_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNoThe reason for rejecting, recorded with the decision. Strongly recommended — ask the user if they didn't say.
confirmedNofalse (default) returns a preview of what would be rejected and does NOTHING. true rejects it. Preview, show the user, wait for their yes, then call again with true.
ar_identifierYesThe approval request to reject — friendly number like 'AR-15' / '15' or the internal integer id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the destructive/non-idempotent annotations, it discloses the full two-step preview protocol: confirmed=false records nothing, confirmed=true with no recent matching preview silently degrades to a preview, one preview admits one attempt, previews lapse on request change including third-party decisions, and a preview-store outage does not block the write. These are exactly the non-obvious traits an agent could otherwise trip over when making an irreversible decision.

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?

The action and the 'confirm with the user first' warning are front-loaded, and the remaining sentences each cover a distinct edge case rather than padding. Some sentences are dense and clause-heavy (the preview-store and lapse rules), which slightly slows parsing, but little could be cut without losing important behavior.

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 destructive tool with no output schema, this covers preconditions, two-step flow, retry semantics, and failure modes thoroughly. The remaining gap is that no output schema exists and the description never says what a preview response actually contains, so an agent cannot predict the preview payload.

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 100%, so all three parameters are already documented including the confirmed default and the AR-15/integer identifier formats. The description reinforces the confirmed semantics but adds little parameter-level meaning the schema does not already carry; a 3 is the correct baseline when the schema does the work.

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?

The description opens with a precise verb+resource and scope: 'Record this user's rejection of a request that is waiting on their decision.' Combined with the title and the existence of an approve_request sibling, an agent can immediately tell this is the rejection path rather than the approval or cancellation path.

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?

It states the triggering condition (a request waiting on this user's decision) and the failure precondition (the user must be the current approver). It also mandates confirming with the user first before recording. It stops short of explicitly naming sibling alternatives such as approve_request or cancel_request for the other decision paths.

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