Skip to main content
Glama

submit_expenses

Sends an approved expense submission after preview confirmation, verifies the fingerprint to prevent duplicate delivery, and reports submitted and failed items.

Instructions

Step 2 of 2: send a prepared submission, ONLY after the rep has read the preview and said yes.

The fingerprint must match the preview. Each submitted expense records where it went, so it is never sent twice. Report what was submitted, what failed and why.

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": {
      "submission_id": "<submission_id>",
      "fingerprint": "<fingerprint>"
    },
    "name": "submit_expenses"
  }
}

Input Schema

NameRequiredDescriptionDefault
fingerprintYes
submission_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose meaningful behavior - the fingerprint must match the preview, submissions are recorded to prevent double-sending, and the result reports successes and failures with reasons. Still missing are permission requirements, whether a partial failure leaves state behind, and whether a resend after a failed call is safe.

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?

Compact and front-loaded with the step number and the confirmation precondition before the mechanics. The sentence about recording where each expense went is slightly convoluted but carries real idempotency information, so it earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description does cover the return shape at a high level (what was submitted, what failed and why). However, for an irreversible-looking submission with zero annotations and zero schema descriptions, the definition does not say enough about failure recovery or the origin of the submission_id.

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 0%, so the description must explain both parameters. It does clarify 'fingerprint' (must match the preview) but leaves 'submission_id' only implied by 'a prepared submission', without saying where the ID comes from or whether it expires.

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 ('send a prepared submission') and situates it explicitly as 'Step 2 of 2', which cleanly separates it from the prepare/preview step that must precede it. An agent can tell this is the committing action, not a read or a draft.

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 a hard gating condition: only invoke after the rep has read the preview and confirmed. That covers when-to-use and implicitly when-not-to, though it does not name any alternative tool (e.g. the preview/prepare step) by name.

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