Skip to main content
Glama

Samuelz® Sales

Belegtes Ergebnis einer Verkaufschance lesen

get_sales_outcome
Read-onlyIdempotent

Read an explicitly linked existing customer order using the original ServiceOrder or reservation economics workflow. Requires crm:read, operations:read, accounting:read and owner authority. Shows recorded offers, acceptance, delivery, original payment and issued invoice separately. Service-order invoiceCredits qualifies original credit notes by exact original invoice reference, owner, currency, amounts and stored original validation metadata. Check state and recordedCreditCoverageComplete: pending, unbound, changed or unavailable credit sources yield no complete corrected amount. creditNetMinor and invoiceNetAfterCreditsMinor describe documented invoice adjustments, never executed cash refunds or retained revenue. Original invoice and payment facts are preserved. cashAdjustments separately reuses the original document-payment reader for stored provider-settlement evidence matched to that invoice and its qualified original credit documents. Only such evidence can report an observed refund, never a credit note alone. Check state; no qualified events or unavailable sources yield unknown amounts, not proof of zero refunds. The recorded payment-minus-refund difference is neither net revenue nor profit and excludes unrecorded reversals, chargebacks and fees; no live provider refresh. Full cash-reversal/cost coverage and profit remain unknown. Shared order references require allocation and never count twice. Not permission to send, collect payment or change the order. No tenant selector.

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": {
      "opportunityId": "<opportunityId>"
    },
    "name": "get_sales_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
opportunityIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior5/5

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

Beyond the annotations, the description discloses required permissions (crm:read, operations:read, accounting:read, owner authority), state-dependent qualification of credit evidence, the distinction between documented invoice adjustments and executed cash refunds, the absence of live provider refresh, allocation requirements for shared order references, and what the result does not prove. This is substantial behavioral context for a read-only tool.

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

Conciseness2/5

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

The description is very long, dense, and jargon-heavy, with repeated caveats about state checks and unavailable credit sources. Important constraints are buried in long sentences rather than front-loaded concisely, making the definition harder to scan than necessary for a one-parameter read tool.

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 complex financial read tool with no output schema, the description supplies extensive context about returned facts, credit qualification, source limitations, and authority requirements. It does not fully compensate for the missing parameter explanation, but the behavioral and return-value context is otherwise rich.

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

Parameters2/5

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

The schema has one required parameter, opportunityId, with 0% description coverage, and the description never explains the parameter's meaning, format, or how to obtain it. The 'explicitly linked existing customer order' context weakly implies that the ID refers to an opportunity or order, but no direct parameter semantics are added.

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: 'Read an explicitly linked existing customer order using the original ServiceOrder or reservation economics workflow.' This distinguishes it from tools that write, send, collect payment, or change orders, though it does not explicitly name sibling alternatives such as get_sales_outcome_sources.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by 'explicitly linked existing customer order' and the permission requirements, but there is no explicit guidance on when to choose this tool instead of siblings like get_sales_outcome_sources or link_sales_outcome. The statement that it is 'Not permission to send, collect payment or change the order' helps exclude actions but not tool alternatives.

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