Skip to main content
Glama

Submit an approval request

submit_request

Submit a new approval request against a workflow. Call get_workflow_details first and supply every required field; the tool reports which values are missing or invalid rather than guessing. This notifies real approvers — confirm the values with the user before calling. Two-step: call with confirmed=false (the default) first for a preview with NOTHING written yet; call again with the same fields plus confirmed=true to actually submit it. A confirmed=true call with no matching preview from this connection in the last 10 minutes is run as the preview instead, and writes nothing. One preview admits one attempt, so a call that fails needs a new one. If the server cannot reach its preview store it does not hold the call back, so always preview first regardless.

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": {
      "workflow_id": "<workflow_id>",
      "fields": "<fields>"
    },
    "name": "submit_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsYesMap of field key to value. Prefer the field's `id` (UUID) from `get_workflow_details` as the key — the binding name (e.g. "absence_from") or the exact label are accepted as fallbacks, but the UUID is canonical. Each value should match the field type: strings for text, numbers for amount/number, date strings (YYYY-MM-DD) for dates, option values for dropdowns. Money (amount, and item_price cells in line_items) in dollars as the user says it, e.g. 250 or "1,250.50"; the tool converts to the stored unit, never multiply by 100 yourself. A line-item tax cell (accounting_tax / xero_tax_rate) takes the tax's id from search_entities, never its percentage; the tool stores the tax's rate. Always include every required field — missing required fields (esp. workflow-specific ones like `absence_from`/`absence_to` for time-off, vendor for bills/POs) cause downstream creation errors that are not recoverable from inside the tool.
priorityNoPriority level. Defaults to medium.
confirmedNofalse (default) previews: validates everything and returns every blocker at once WITHOUT creating anything. true creates the request. Preview first, then confirm with the user, then call again with true.
workflow_idYesThe workflow ID to create the request for.
step_approversNoOnly for steps `get_workflow_details` marks `requestor_picks_approver: true` — on those the form makes the requestor choose who approves, and the preview lists each one as a blocker until it has a pick. One entry per such step: {"step_order": 0, "approver_ids": [12, 34], "completion": "all"}. Resolve names with `search_team_users`; `completion` is "all" (every one must approve, the default) or "any" (one is enough).

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?

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false) by disclosing that real approvers are notified, that previews write nothing, the 10-minute preview window, one-attempt-per-preview, and fail-open behavior when the preview store is unreachable. The only omission is what a successful submit returns (e.g. a request id), which the agent would want after a write.

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-loaded with the two-step preview/confirm rule, and virtually every sentence carries operational weight. It is on the long side, with the preview-store and single-attempt caveats restating the preview requirement in several forms, but nothing is filler.

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 non-idempotent write tool with nested objects and no output schema, the description covers validation behavior, failure modes, and irrecoverable downstream errors well. The remaining gap is the shape of a successful response, which the agent must infer.

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% and the field-level descriptions already cover keys, value types, money units, tax ids, and step_approvers structure in depth, so the schema does the heavy lifting. The description reinforces the two-step use of `confirmed` and the 'same fields' requirement, but adds little field-level meaning beyond what the schema states.

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 ("Submit a new approval request against a workflow") and distinguishes itself from mutation siblings like update_request/approve_request by making clear it creates a new request. An agent can identify the operation without opening the schema.

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 names the prerequisite tool ("call get_workflow_details first") and the human-in-the-loop requirement ("confirm the values with the user before calling"). It also spells out the mandatory preview-then-confirm sequence, which is the key usage decision for this tool.

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