Skip to main content
Glama

Set what a rejection does under an approval policy

set_approval_policy_rejection

Two independent settings of an approval policy (ids from get_agent_approvals): on_reject 'tell_agent' (the agent hears the decision and the reason and answers in the conversation) or 'stop' (the run simply stops); notify_requester_on_reject true (default — a rejected or expired request posts a visible 'This action was not approved' notice with the approver's reason in the requester's conversation) or false (nothing is posted; the decision stays in the inbox and audit trail). Omit a setting to keep it. Needs approval.manage.

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": {
      "policy_id": "<policy_id>"
    },
    "name": "set_approval_policy_rejection"
  }
}

Input Schema

NameRequiredDescriptionDefault
on_rejectNoTell the agent: tell_agent or stop.
policy_idYesApproval policy id (from get_agent_approvals).
notify_requester_on_rejectNoTell the person in the chat (true = post the not-approved notice).

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 (readOnly=false, destructive=false), it discloses required authorization ('Needs approval.manage'), the downstream conversational effect of each mode, the default for notify_requester_on_reject, and where an unposted decision still surfaces (inbox and audit trail). This is substantially more behavioral context than the annotations provide.

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?

It is front-loaded with the resource and the two settings, and every clause carries information. However, it is a single densely nested sentence built from parentheticals, which makes it harder to parse than it needs to be.

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 small mutation tool with full schema coverage and annotations, this covers permission requirements, defaults, partial-update behavior, and effects. The only gap is that it does not indicate what the call returns or what happens on an invalid policy_id or insufficient permission.

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?

Schema coverage is 100%, so the baseline would be 3, but the description adds genuine meaning the schema lacks: it explains what 'tell_agent' does versus 'stop', declares true as the default for notify_requester_on_reject, and states the omit-to-preserve rule for both settings.

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 names the specific resource ('approval policy') and the two exact settings it mutates ('on_reject', 'notify_requester_on_reject'), spelling out each enum value's meaning. An agent can tell this apart from the broader 'set_agent_approvals' sibling because the scope is explicitly limited to rejection behavior.

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 says where to obtain the required id ('ids from get_agent_approvals') and clarifies partial-update semantics ('Omit a setting to keep it'). It lacks an explicit when-to-use-this-vs-set_agent_approvals statement or any exclusion, so it stops short of full routing guidance.

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