Skip to main content
Glama

InvoiceParser Pro

Allocate invoice cost to a load

assign_invoice_load
DestructiveIdempotent

Apply only the exact change returned by preview_assign_invoice_load, after the user confirms that preview. Accepts its confirmation_token only; changed or expired records require a new preview. Prepare assigning a whole invoice or exact printed-line index to a load number. Other allocations remain. Does not change invoice amounts. Requires confirmation.

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": {
      "input": "<input>"
    },
    "name": "assign_invoice_load"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructive, non-read-only, idempotent behavior, but the description adds real context beyond them: the mutation is scoped ('Other allocations remain'), invoice amounts are untouched, and the confirmation token is single-use with staleness invalidation. That is exactly the kind of blast-radius and token-lifetime disclosure an agent needs before a destructive 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?

Short and front-loaded with the gating rule (preview then confirm) before the scope details. Minor redundancy: 'Requires confirmation' repeats the earlier 'after the user confirms that preview,' and the 'Prepare assigning...' sentence is awkwardly worded.

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 destructive one-parameter mutation with annotations and no output schema, the description covers prerequisites, token handling, mutation scope, and what is not changed. Only the post-call outcome (confirmation result) is unstated, which is a small gap given there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter, and the schema's $defs does describe the token, but reported coverage is 0% so the description must carry weight. It does: it identifies the token's origin (preview_assign_invoice_load), its single-use nature, and the expiry/changed-record invalidation rule — semantics the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (apply an invoice-load allocation) and names the exact upstream sibling, preview_assign_invoice_load, that produces the change. An agent can tell it apart from preview_assign_invoice_load and clear_invoice_load. The phrase 'Prepare assigning a whole invoice or exact printed-line index' is slightly muddled, which keeps it off a 5.

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?

Explicit ordering is given: call preview_assign_invoice_load, get user confirmation, then apply. It also states the exclusion condition — changed or expired records require a new preview — and that only the preview's token is accepted. No alternatives or preconditions are left to inference.

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