Skip to main content
Glama
midPoint MCP Server

midPoint MCP Server

Withdraw request

cancel_request

Withdraw your own open approval request by verifying its case state and requester; midPoint enforces cancel authorization and confirms closure.

Instructions

Withdraw your own open approval request. Reads the case and checks its state and requester before writing, even with writes disabled. midPoint enforces cancel authorization. Uses plain REST with no comment; reads back the case to confirm closure. userName and roleName are the midPoint names (the unique name attribute, such as a login, not display names) of the objects the OIDs point to, as list and get results give them; the call is refused when they don't match, so the person confirming it reads the right names. Respects the write gate. When you write to a person, name people, roles and requests by their display names rather than OIDs.

Input Schema

NameRequiredDescriptionDefault
caseOidYesOID of your open request to withdraw
roleNameYesmidPoint name of the role (or other object) the request adds or removes; empty only when midPoint doesn't show you its name
userNameYesmidPoint name (login) of the person the request is for; empty only when midPoint doesn't show you their name

Output Schema

NameRequiredDescriptionDefault
bodyNothe JSON body of the midPoint REST request, when it has one
caseNo
toolYesthe tool that produced this result
actingYeswho midPoint executed this call as
dryRunYes
methodYes
resultNo
serverYeswrite gate, features and versions of this server
appliedYes
caseOidYes
subjectYes
summaryYes
endpointYes
withdrawalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full load and does so well: it discloses the pre-write read and state/requester check, that midPoint enforces cancel authorization, the write-gate respect, the absence of a comment, and a post-write read-back to confirm closure. The name-mismatch refusal is a concrete failure mode an agent can plan around.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The action and scope are front-loaded, but the prose is dense and several clauses are only tangentially useful to invocation, such as "Uses plain REST with no comment" and the closing general instruction about display names. The long OID/name-matching sentence is hard to parse in one pass.

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 three-parameter mutation with an output schema present, the description covers authorization, precondition checks, refusal conditions, write-gate behavior, and post-write verification. Nothing an agent needs in order to call this safely 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 100%, so the baseline is 3, but the description adds real meaning the schema lacks: userName and roleName are midPoint unique-name attributes (logins) rather than display names, they must correspond to the objects the OIDs point to, and a mismatch aborts the call. That explains why the confirmation parameters exist at all, though it does not clarify the empty-string case the schema mentions.

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

Purpose4/5

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

The first sentence gives a specific verb and resource with scope: "Withdraw your own open approval request." That cleanly separates it from sibling mutators like decide_work_item, claim_work_item, and request_role. It never names an explicit alternative, so it stops short of a 5.

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?

Usage context is clear: it applies only to the caller's own open request, requires name/OID agreement, and is refused otherwise. There is no explicit when-not guidance or reference to a sibling tool for the case where the request is not yours, which keeps it below 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.