Skip to main content
Glama

Get a sales order

get_sales_order
Read-onlyIdempotent

One sales order in full: every line with the quantity ordered, delivered and invoiced and how it was priced (price_basis names the rule), the deliveries recorded, the invoices raised from it, and actions — what the server would let a person do to it now.

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": {
      "sales_order_id": "<sales_order_id>"
    },
    "name": "get_sales_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idNoAnother entity in the same books (ids from `list_entities`). Leave out to use the entity the person is working in.
sales_order_idYes

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description goes beyond that by disclosing that `actions` reflects what the server 'would let a person do to it now', i.e. permission-dependent per-record capabilities, and that `price_basis` names the pricing rule — real behavioral context not present in the annotations.

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?

A single sentence, front-loaded with the 'one order in full' scope, then a tight enumeration of returned parts. It is dense but every clause carries content; the parenthetical on `price_basis` could arguably be trimmed, but it earns its place by clarifying an ambiguous field.

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?

An output schema exists, so the description did not need to enumerate return contents, yet its enumeration adds semantics the schema likely does not convey. For a two-parameter read tool with a full annotation set, the only real gap is the unexplained sales_order_id parameter.

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?

Schema coverage is 50%: entity_id is documented in the schema while sales_order_id is bare, and the description says nothing about either parameter — no format, no id source, no note on the entity scoping/fallback behavior. With half the parameters undocumented and no compensating text, the description leaves the agent to infer parameter meaning from names alone.

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?

The description states a specific resource and scope: 'One sales order in full', then enumerates the content (lines with ordered/delivered/invoiced quantities, pricing, deliveries, invoices, actions). This clearly separates it from a list-style tool, though it never names a sibling such as list_sales_orders or get_purchase_order to make the contrast explicit.

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 only implied: the reader can infer this is the single-record detail view versus a list or a create tool, and the `actions` field hints at pre-mutation inspection. There is no explicit statement of when to choose this over alternatives or any precondition for calling it.

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