Skip to main content
Glama

Compute Ledger

Get inventory

get_inventory
Read-onlyIdempotent

Fetch one immutable inventory record by inventory_id.

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": {
      "inventory_id": "<inventory_id>"
    },
    "name": "get_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
inventory_idYesId of the GHG inventory, for example from ghg-ledger.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed1 schema field changed
    • addedInput schema / properties / inventory_id / description
      Added value: +"Id of the GHG inventory, for example from ghg-ledger."
  3. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false), so the description only needs to add context. The word 'immutable' is genuinely useful, telling the agent the returned record cannot change and need not be re-fetched for freshness. Nothing is said about behavior when the id does not exist, which is a meaningful gap for a lookup tool.

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 twelve-word sentence that front-loads the verb and the cardinality constraint. There is no boilerplate or redundant restatement of the title.

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?

With one fully documented parameter, rich annotations, and an output schema that removes any need to describe return values, the definition covers nearly everything an agent needs to invoke it. The only missing piece is not-found / error behavior, which matters somewhat for an id-based lookup but is a minor omission overall.

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% and the schema itself even explains where the id comes from ('for example from ghg-ledger'). The description's 'by inventory_id' merely restates the parameter name, adding no format, validation, or provenance detail beyond the schema, so the baseline of 3 applies.

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 gives a specific verb ('Fetch') plus resource ('one immutable inventory record') and the lookup key ('by inventory_id'), which cleanly separates it from listing or mutation siblings. It stops short of naming any sibling explicitly (e.g. list_inventories), so differentiation is inferred rather than stated.

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?

'By inventory_id' implicitly signals the prerequisite that the caller must already hold an id, and 'one' implies this is not the bulk/listing path. However, there is no explicit when-to-use, when-not-to-use, or named alternative, so the agent must infer the routing from the phrasing.

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.