Skip to main content
Glama

Samuelz® Sales

Vorhandene Kostenbelege prüfen

get_sales_cost_sources
Read-onlyIdempotent

Inspect existing supplier-invoice originals before attributing their net expense. Use get_sales_costs instead to read allocations already recorded for a learning opportunity or channel; this tool discovers and qualifies the original invoice.

Choose one mode: omit documentId to list up to 20 stored candidates, following nextCursor as after; or pass one returned documentId alone to inspect its current fingerprint, allocatedNetAmountMinor and availableNetAmountMinor. documentId and after are mutually exclusive. A listed candidate is not automatically qualified: unavailable originals or incoherent net/tax/gross amounts remain unavailable.

List results contain items, nextCursor and explicit coverage. An exact read returns state/reason, or state=ready with source and the currently available net allocation. Amounts use minor currency units. Availability reserves no money and proves neither payment, original byte verification nor complete costs. Current CRM, Operations and Accounting read consent and owner access are rechecked. No attribution, invoice mutation, provider refresh or tenant selector.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_sales_cost_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoContinuation: copy nextCursor from the preceding candidate page unchanged. Omit documentId and stop when nextCursor is null.
documentIdNoExact documentId from this tool’s current candidate page. Select one invoice for current qualification and net availability; omit after.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / after / description
      Added value: +"Continuation: copy nextCursor from the preceding candidate page unchanged. Omit documentId and stop when nextCursor is null."
    • addedInput schema / properties / documentId / description
      Added value: +"Exact documentId from this tool’s current candidate page. Select one invoice for current qualification and net availability; omit after."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: availability reserves no money, proves neither payment nor original byte verification, consent and owner access are rechecked at call time, and no attribution, mutation, provider refresh or tenant selector occurs. Those negative guarantees are exactly what an agent needs before treating a result as authoritative.

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 purpose and the sibling alternative, then modes, then return shape, then caveats; most sentences carry distinct information. It is dense and slightly long, with some restatement of the schema's mutual-exclusivity rule, but no clearly wasted prose.

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

Completeness5/5

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

There is no output schema, so the description supplies the return structure itself: items, nextCursor, explicit coverage, and state/reason or state=ready with source and available allocation, plus minor-currency units. For a two-mode, paginated read tool this covers everything needed to call it correctly.

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?

Schema coverage is 100% and the schema already documents both after and documentId, so the baseline would be 3. The description still adds value by framing them as a mode choice (list vs. exact read) and describing what an exact read returns (fingerprint, allocatedNetAmountMinor, availableNetAmountMinor), though the mutual-exclusivity point largely repeats the schema.

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: "Inspect existing supplier-invoice originals before attributing their net expense." It explicitly separates itself from the sibling get_sales_costs by naming what that tool does instead, so an agent can choose between them without opening either 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?

Gives explicit routing advice (use get_sales_costs for already-recorded allocations, this tool for discovering and qualifying the original), then spells out the two modes and their mutual exclusivity. It also warns that a listed candidate is not automatically qualified, which pre-empts the most likely misuse.

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