Skip to main content
Glama

Require confirmation for a Request

set_request_confirmation_policy

Turn confirmation on. A Request with a confirmation policy stops at a pending action for a person to confirm before it runs. This tool can only turn confirmation on where the Request has none. Changing or removing a policy is done by an Administrator on the Request page. policy is none, requester, or role. requester asks the person who called the Request to confirm. role names approver_role_id, the Role whose members may confirm. expiry_seconds is how long that pending action stays open. Omit it to use 900 seconds for requester or 604800 seconds for role. It must be a whole number from 60 to 2592000. Omit confirmation_app_id to use Ekaya's page. Name a Hosted App to use that app as the confirmation screen.

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": {
      "query_id": "<query_id>",
      "policy": "<policy>"
    },
    "name": "set_request_confirmation_policy"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyYesnone, requester, or role. This tool can set requester or role only when the Request has no policy yet.
query_idYesUUID of the approved Request
expiry_secondsNoWhole seconds from 60 to 2592000. Omit it to use 900 for requester or 604800 for role.
approver_role_idNoUUID of the approver Role. Required when policy is role. Omit it for requester and none.
confirmation_app_idNoUUID of the Hosted App that confirms the Request. Omit it to use Ekaya's page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (which only say this is a non-read-only, non-idempotent, non-destructive mutation), the description discloses the real side effect: the Request stops at a pending action awaiting a human. It also gives concrete defaults and bounds for expiry_seconds (900 for requester, 604800 for role; 60–2592000) and the default confirmation surface when confirmation_app_id is omitted.

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?

Front-loaded with the core behavior and then grouped by parameter concern, with essentially no filler. Slight structural awkwardness: the 'only turn on / Administrator handles the rest' restriction sits between the behavior statement and the policy definition, splitting the conceptual flow.

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 5-parameter mutation with no output schema, the description covers everything needed to invoke correctly: precondition (no existing policy), enum meanings, conditional requirement of approver_role_id, expiry defaults and bounds, and the confirmation-app default. No output-schema explanation is required, and none is missing.

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 already 100%, so the baseline is 3, but the description adds semantic meaning the schema lacks: 'requester' means the caller confirms, 'role' means members of approver_role_id may confirm, expiry is the lifetime of the pending action, and confirmation_app_id designates the confirmation screen. Minor residual gap is the odd enum value 'none' listed alongside a tool that only turns confirmation on.

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 action (turn confirmation on) applied to a specific resource (a Request's confirmation policy) and explains the resulting behavior: the Request halts at a pending action until a person confirms. It also draws a clear boundary against the adjacent capability (changing/removing a policy, which is done by an Administrator on the Request page), so an agent can tell what this tool is and is not.

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?

"This tool can only turn confirmation on where the Request has none" is an explicit when-not constraint, and the description routes the modify/remove case elsewhere. What is missing is routing among the actual sibling tools (e.g. execute_approved_request, cancel_pending_action, set_role_requests) that an agent might reach for in the same flow.

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