Skip to main content
Glama

Expense policy checker

submit_expense_policy_checker
Idempotent

Check an expense claim against an amount limit, allowed categories and receipt rules. When a claim must be checked against a stated policy. Do not choose this when the policy varies by role, project or period. Example requests: Check these expenses against our policy. | Which expense claims break the rules? | Audit this expense claim for missing receipts.

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_expense_policy_checker"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id from POST /v1/jobs; required when priced.
buyer_tokenNoThe buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe quoted amount, echoed exactly; checked against the quote.
idempotency_keyNoRetry key; the same key returns the same job.
payment_signatureNox402 payment payload; required for a priced capability (see submit_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / buyer_token
      Added value: +{
      +  "description": "The buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / accepted_price / description
      Previous value: -"The amount accepted, exactly as quoted (for example \"5.00\" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit."New value: +"The quoted amount, echoed exactly; checked against the quote."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry key. Re-sending the same key returns the same job instead of running it twice."New value: +"Retry key; the same key returns the same job."
    • changedInput schema / properties / payment_signature / description
      Previous value: -"Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes."New value: +"x402 payment payload; required for a priced capability (see submit_job)."
    • changedInput schema / properties / quote_id / description
      Previous value: -"The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued."New value: +"The quote_id from POST /v1/jobs; required when priced."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "access_token": {
      -      "description": "Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.",
      -      "type": "string"
      -    },
      -    "artifacts": {
      -      "type": "array"
      -    },
      -    "capability_id": {
      -      "type": "string"
      -    },
      -    "job_id": {
      -      "type": "string"
      -    },
      -    "quote": {
      -      "type": "object"
      -    },
      -    "state": {
      -      "enum": [
      -        "received",
      -        "rejected",
      -        "quoted",
      -        "authorized",
      -        "executing",
      -        "deferred",
      -        "queued",
      -        "verifying",
      -        "completed",
      -        "failed",
      -        "timed_out",
      -        "cancelled"
      -      ]
      -    },
      -    "verification": {
      -      "description": "Independent verification. verification.ok = false means the job failed, not a partial success.",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "job_id",
      -    "state"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Retry key. Re-sending the same key returns the same job instead of running it twice.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / state / enum
      Previous value: -[
      -  "received",
      -  "rejected",
      -  "quoted",
      -  "authorized",
      -  "executing",
      -  "deferred",
      -  "verifying",
      -  "completed",
      -  "failed",
      -  "timed_out",
      -  "cancelled"
      -]New value: +[
      +  "received",
      +  "rejected",
      +  "quoted",
      +  "authorized",
      +  "executing",
      +  "deferred",
      +  "queued",
      +  "verifying",
      +  "completed",
      +  "failed",
      +  "timed_out",
      +  "cancelled"
      +]
  5. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and a closed-world scope, and the description does not contradict them. However, it frames the tool purely as a 'check' while it is actually a job submission: nothing in the prose says it consumes a quote, requires payment/authorization, or returns a job rather than immediate findings. That is a meaningful behavioral gap for a paid, non-read-only capability.

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 purpose, then when/when-not, then examples — a sensible order with no filler. The fragment 'When a claim must be checked against a stated policy.' reads awkwardly and the third example largely restates the first, small deductions.

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?

For a 7-parameter, nested-object, priced job submission with no output schema, the description omits what the caller gets back (findings, violations, a report artifact) and that the result arrives as a job. It covers the analytical contract well but leaves the delivery/payment side to the schema.

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 86%, so policy.txt and expenses.csv are already well documented in the schema; the description adds the useful hint that the policy encodes an amount limit, categories and receipt rules. It says nothing about quote_id, buyer_token, accepted_price or payment_signature, but the schema covers those adequately, so baseline 3 applies.

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 concrete verb and resource — 'Check an expense claim' — and enumerates the three rules it enforces (amount limit, allowed categories, receipt rules), so the agent knows exactly what the tool evaluates 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 Guidelines4/5

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

Gives an explicit when-to-use ('When a claim must be checked against a stated policy') and a when-not ('Do not choose this when the policy varies by role, project or period'), plus three example requests that aid routing. It stops short of naming a concrete alternative sibling for the excluded case, so it falls just below the top band.

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