Skip to main content
Glama

invoke_operation

Destructive

Execute an Admin API operation through the standard HTTP pipeline (caller's token, account context and permissions apply). Success returns {success: true, body: ...}; an API error returns {success: false, errors: [{code, type, message, hint?}]} (statusCode added only when not 200); a guard refusal returns {error, details?}.

Input Schema

NameRequiredDescriptionDefault
bodyNoRequest body — a JSON object ({"page":1}) or that same JSON as a string. Both work.
confirmNoSet true ONLY to confirm an intentional un-scoped bulk delete (empty/omitted filter, hits EVERY record). This must reflect a REAL reply from the human — ask them directly what it affects, wait for their next message, and never infer it from their original request or set it in the same turn where you explain the risk. Leave false normally; a refusal explains what to ask.
guideAckNoAcknowledgement token from an HTML-editing guide (get_operation_schema section="guide", or the refusal). REQUIRED when writing a site page's BodyHtml/HeadHtml, a site header/footer's BodyHtml (fragment only — no HeadHtml), OR a course step's theory designHTMLPublished/designStylePublished/customTheoryHtml — confirms you read and applied that operation's guide; otherwise the write is refused.
pathParamsNoRoute parameters, scalars only — a JSON object ({"id":"a1b2"}) or that same JSON as a string.
operationIdNoREQUIRED. Operation id to execute, e.g. 'crm.Lead.GetItems.get'. Get one from capability_map -> list_recipes(search="<intent>") -> search_operations(query). A recipe INTENT is not an operation id — open the recipe and use its operationId.
queryParamsNoQuery parameters — a JSON object or that same JSON as a string; array values are sent as repeated keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations declare the safety profile (destructiveHint=true, openWorldHint=true), and with no output schema the description adds real value by enumerating the three return shapes: success, API error with {code, type, message, hint?}, and guard refusal. It also notes that the caller's token, account context and permissions apply. It does not explain when a guard refusal fires or what triggers confirmation, but it goes well beyond the annotations.

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-loads the core action ('Execute an Admin API operation') before enumerating return shapes, then spends its remaining words on genuinely useful contract details. Dense but not padded; the long second sentence earns its place because no output schema exists.

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 destructive, open-world generic dispatcher with no output schema, the description supplies the missing return contract (success/error/guard refusal) and names the pipeline semantics. It omits the confirm and guide-ack preconditions, but those are fully documented in the schema, so an agent has enough to call it correctly.

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 the rich confirm/guideAck/operationId descriptions already carry parameter meaning. The description itself mentions no parameters and adds nothing beyond the schema, so the baseline 3 is appropriate.

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?

States a specific verb and resource ('Execute an Admin API operation through the standard HTTP pipeline'), which is clearer than a tautology and tells the agent this is the generic dispatcher. It does not explicitly contrast with sibling discovery tools like search_operations or list_recipes, but the verb+resource is unambiguous.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance, and names no alternatives. The routing workflow (capability_map -> list_recipes -> search_operations) lives only in the operationId schema field, not in the description, so an agent reading the description alone gets no usage context.

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