Skip to main content
Glama

Submit intent for approval

stack_submit_intent

Submit an Intent for operator approval before execution. Registers the intent claim, runs a simulation unless skip_simulation is true, and creates a pending approval. Returns approval_id, intent_claim_id and the simulation result. Operators approve or reject in the dashboard or through the REST API. Passports in enforced mode need an approved intent before a proxy, skill or A2A call; stack_get_intent_approval returns the decision, and stack_proxy_request accepts the approval_id.

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": {
      "passport_token": "<passport_token>",
      "intent": "<intent>"
    },
    "name": "stack_submit_intent"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYesIntentClaim payload. Must include type=intent_claim, intent_type (http_call|skill_invocation|a2a_dispatch|...), agent_id, named_intent, target, action, parameters, estimated_cost, accountability, reason, requires, user_subject, mission_ref, submitted_at.
passport_tokenYesPassport JWT token (same shape stack_proxy_request takes)
skip_simulationNoSkip the inline simulation. Default false.
expires_in_secondsNoTTL for the pending approval row in seconds (default 900, at most 86400, a longer time is refused). The operator must decide within this window or the row flips to expired.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the non-read-only, non-destructive, closed-world profile; the description goes well beyond that by disclosing side effects (registers the intent claim, runs a simulation, creates a pending approval row) and naming the return fields. It also documents the approval lifecycle (operator decides in dashboard or REST API) and the TTL expiry consequence, though it says nothing about idempotency or duplicate submissions.

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 dense sentences, front-loaded with purpose and behavior before the workflow guidance. Nearly every clause carries information, though the return-field enumeration and the sibling routing could be tightened slightly without loss.

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 tool with a nested intent payload, no output schema, and an approval workflow, the description covers inputs, side effects, return identifiers, and the follow-up decision path. The one gap is the shape of the simulation result, which the description mentions but does not characterize.

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 100%, so the schema already documents passport_token, intent payload fields, skip_simulation, and expires_in_seconds. The description adds only marginal meaning, mainly the workflow consequence of skip_simulation and the enforced-mode relevance of the passport token, which justifies the baseline 3 rather than more.

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 first sentence names a specific verb and resource (submit an Intent for approval) and immediately scopes it to pre-execution gating. It distinguishes itself from siblings by naming stack_get_intent_approval for the decision and stack_proxy_request as a downstream consumer, so an agent can place it in the workflow without opening other schemas.

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

Usage Guidelines5/5

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

Explicitly states the triggering condition — passports in enforced mode need an approved intent before a proxy, skill, or A2A call — and routes the agent onward to stack_get_intent_approval for the decision. It also flags the skip_simulation path, giving a clear when-to-use and when-to-bypass story.

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.