Skip to main content
Glama

get_purchase_bill

Retrieve a single purchase bill by ID, including supplier details and payment records, or return the full raw JSON:API payload for inspection.

Instructions

Get a single purchase bill by ID (with details, supplier and payments).

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": {
      "id": "<id>"
    },
    "name": "get_purchase_bill"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesPurchase bill ID
rawNoReturn the full raw JSON:API payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load; it does disclose what the payload contains ('with details, supplier and payments'), which helps the agent decide to call it. However, it says nothing about error behavior for a missing/invalid ID, read-only safety guarantees, or what 'raw' materially changes beyond the schema's own wording.

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?

A single front-loaded sentence with the resource, the lookup key, and the returned payload all in the first clause. Nothing is redundant or padded.

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?

This is a simple two-parameter read tool with no output schema, and the description conveys enough about the return content for correct invocation. The remaining gap is unstated error/not-found behavior, which is minor for a 'get by ID' operation.

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 100%, so both parameters are already documented in the schema, and the description adds only the implication that 'id' identifies a single bill. That matches the baseline 3 when the schema does the heavy lifting.

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 verb and resource ('Get a single purchase bill') and scopes it to a single record by ID, which implicitly sets it apart from list_purchase_bills. It does not explicitly name a sibling, so it stops short of full differentiation.

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: 'by ID' tells the agent an ID is required and that this is the single-record read, so a listing sibling is not needed. There is no explicit when-to-use, when-not-to-use, or prerequisite (e.g. permissions, where the ID comes from).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.