Skip to main content
Glama

InvoiceParser Pro

Preview: Record load revenue

preview_set_load_revenue
Read-onlyIdempotent

Prepare replacing a load's saved revenue using a flat amount or rate per ton with tonnage. Omitted optional fields are cleared. Records operational information and creates no accounting bill/payment. Requires confirmation. This returns an exact preview and a five-minute confirmation token; it does not apply the change.

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": "preview_set_load_revenue"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly and idempotent, but the description adds genuinely new context: omitted optional fields are cleared on the eventual set, no accounting bill/payment is created, confirmation is required, and the token expires in five minutes. This is exactly the kind of side-effect and lifecycle detail annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the core action, then clearing behavior, side-effect disclaimer, and return contract. No filler; every sentence supplies information an agent needs.

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?

No output schema exists, and the description does cover the return value (exact preview plus token) and the non-persistence guarantee. Only the per-field semantics of the wrapped LoadRevenue object are under-described, which keeps it from a 5.

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 0%, so the description carries the burden. It usefully explains the flat_amount vs rate_per_ton+tonnage choice and the clearing behavior for omitted optionals, but says nothing about trip_number, currency, note, reference, customer_ref or customer_name, leaving much of the payload undocumented.

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+resource (preview replacing a load's saved revenue) and makes the preview-vs-apply distinction explicit with 'does not apply the change'. It doesn't name the real sibling set_load_revenue, so the routing is implied rather than stated.

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?

Clearly frames this as a preparatory step ('Requires confirmation', returns a five-minute token) so the agent understands the preview-then-confirm workflow. It never explicitly says when to reach for this versus set_load_revenue or preview_clear_load_revenue, leaving alternatives implicit.

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