Skip to main content
Glama

prepare_provider_invocation

Private draft: create an encrypted, idempotent invocation intent for an owned approved operation or a granted read-only operation. Granted preparation requires independent server gates and an active consumer pilot session. This does not call the provider. Prefer this path (plus owner approval when required) over blind execute. Revalidate the returned digest, risk, and approval policy before trusting the intent.

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": {
      "projectId": "<projectId>",
      "operationId": "<operationId>",
      "input": "<input>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "prepare_provider_invocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput matching the reviewed operation contract
projectIdYes
operationIdYes
idempotencyKeyYesStable unique key for this intended action

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / input / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / required
      Added value: +[
      +  "result"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantially beyond the annotations: it is a private draft, encrypted and idempotent, performs no provider call, and for granted operations depends on server-side gates plus an active pilot session. It also discloses the post-call obligation to revalidate returned digest, risk, and approval policy, which is real behavioral context an agent cannot get from readOnlyHint/destructiveHint/openWorldHint alone.

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?

Four tight sentences, front-loaded with the identity of the tool and immediately followed by the 'does not call the provider' boundary. The 'Private draft:' prefix is slightly cryptic, but no sentence is filler.

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?

With an output schema present, the description is not obligated to explain return values, and it appropriately focuses on intent, prerequisites, and the post-call revalidation duty. Given four required params including a free-form nested 'input', this covers what an agent needs before calling; only the projectId/operationId relation remains thin.

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 coverage is 50% (only 'input' and 'idempotencyKey' are described in-schema), and the description only indirectly illuminates parameters: 'owned approved operation' hints at operationId semantics and 'idempotent' at idempotencyKey. It never explains projectId or the relationship between projectId and operationId, so it neither fully compensates for the coverage gap nor adds much beyond the schema.

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 verb and resource ('create an encrypted, idempotent invocation intent') and bounds the scope to 'an owned approved operation or a granted read-only operation.' It also explicitly negates the most confusable behavior with 'This does not call the provider,' which cleanly separates it from execute_provider_invocation.

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?

Gives clear routing guidance: 'Prefer this path (plus owner approval when required) over blind execute,' and names prerequisites for the granted case (independent server gates, active consumer pilot session). It stops short of explicit when-not/exclusion conditions or naming the execution sibling directly, so it is a strong 4 rather than a 5.

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