Skip to main content
Glama
service-ops-demo

service-ops-demo

by GautamBytes

get_invoices

Read-onlyIdempotent

Retrieve invoices and currency-specific balances for a customer by customer key; read-only access requires manager role.

Instructions

Read invoices and currency-specific balances. Manager role required. No writes.

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": {
      "customer_key": "<customer_key>"
    },
    "name": "get_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
customer_keyYes

Output Schema

NameRequiredDescriptionDefault
roleYes
sourceYes
customerYes
invoicesYes
syntheticYes
truncatedYes
balance_by_currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful context beyond that, namely the Manager-role authorization requirement, although 'No writes' largely repeats 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?

The description is short, front-loaded, and wastes little space. The only weak point is that 'No writes' is redundant with the readOnly annotation, though it does reinforce the tool's scope.

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

Completeness3/5

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

For a simple read tool with an output schema and rich annotations, the description covers purpose, permissions, and safety adequately. It is incomplete on the sole parameter, and it does not explain the return scope beyond 'currency-specific balances.'

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?

There is only one parameter, customer_key, and schema description coverage is 0%, so the description needs to explain its meaning. It does not mention customer_key at all, leaving the agent to infer that invoices and balances are scoped to a customer.

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 uses a specific verb ('Read') with a clear resource ('invoices and currency-specific balances'). It is easy to distinguish from the sibling tools, which concern contacts and customer overviews, though it does not explicitly name those alternatives.

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?

It states a prerequisite ('Manager role required') and clarifies that the tool is read-only ('No writes'), which helps an agent decide whether it can call it. However, it gives no explicit guidance on when to use this tool versus alternatives or on any other contextual constraints.

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

Deploy Server

Other Tools