Skip to main content
Glama

View a tree's inventory

get_inventory
Read-onlyIdempotent

Every type, tag, and frontmatter key a tree uses, with counts, status and trust-tier totals, and likely near-duplicates (e.g. Policy and Policies). Use it to tidy a tree (merge near-duplicate types and tags, or spot a misspelled key) or to see what it's made of. list_types gives a type's fields and template, for writing; check_freshness lists the concepts that need attention.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
treeNoThe tree's slug, as list_trees gives it (not its name). Required unless the Forest has one tree.

Output Schema

NameRequiredDescriptionDefault
treeYesThe tree, and the commit it was read at.
inventoryYesThe tree's metadata.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedOutput schema / properties / inventory / properties / statuses / description
      Previous value: -"How many concepts have each status."New value: +"How many concepts have each status; `unrecognized` counts those with a status OKF doesn't define."
    • changedOutput schema / properties / inventory / properties / statuses / propertyNames / enum
      Previous value: -[
      -  "draft",
      -  "stable",
      -  "deprecated"
      -]New value: +[
      +  "draft",
      +  "stable",
      +  "deprecated",
      +  "unrecognized"
      +]
    • changedOutput schema / properties / inventory / properties / statuses / required
      Previous value: -[
      -  "draft",
      -  "stable",
      -  "deprecated"
      -]New value: +[
      +  "draft",
      +  "stable",
      +  "deprecated",
      +  "unrecognized"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds behavior beyond that: it computes heuristic 'likely near-duplicates' (e.g. `Policy`/`Policies`) and aggregates trust-tier totals, which tells the agent the output is inferred rather than raw. It doesn't mention scope limits or cost, but the annotation coverage lowers the bar.

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?

Three sentences, front-loaded with what the inventory contains, then when to use it, then alternatives. Dense but every clause carries information; the parenthetical near-duplicate example earns its place by making the heuristic concrete.

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 an output schema, a 100%-documented single parameter, and full annotations, the definition needs only purpose and routing — both supplied. The only shortfall is that it never confirms the tree-wide scope/aggregation cost, which matters for a tool that scans an entire tree.

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 single `tree` parameter already documents that it is a slug 'as list_trees gives it (not its name)' and optional when the Forest has one tree. The description adds nothing about the parameter, so the baseline 3 is appropriate when the schema does all the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the exact resource ('Every type, tag, and frontmatter key a tree uses') and its payload (counts, status, trust-tier totals, near-duplicates), then distinguishes it from siblings by contrasting list_types ('a type's fields and template, for writing') and check_freshness ('concepts that need attention'). An agent can tell what this returns without opening the schema.

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

Usage Guidelines5/5

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

It states concrete use cases ('tidy a tree — merge near-duplicate types and tags, or spot a misspelled key' and 'see what it's made of') and routes the agent to two named alternatives with the conditions that select them. No inference is required to decide between this and list_types/check_freshness.

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