Skip to main content
Glama

List decisions

list_dec

Lists decision records with ids, titles, statuses, and refs from a decision base directory. Filter by glob, page results with offset and max_results to review decisions before opening one by id.

Instructions

Ids, titles, statuses, and refs of decisions in the configured decision base directory, one page at a time, for context before addressing one by id. 'ref' is an opaque, extensionless identifier -- not a filename to read from disk -- for documents that have no assigned id; use it with the get_dec tool instead. An optional glob pattern (e.g. 'dead*') filters the listing to the decisions whose id matches it, case-insensitively; glob=None (the default) lists everything, and an empty string matches nothing. max_results/offset control paging (default page size 25, capped at 100); out-of-range values are clamped, not errored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
globNo
offsetNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYes
offsetYes
resultsYes
truncatedYes
error_countNo
max_resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.36.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses pagination defaults (25, capped at 100), that out-of-range values are clamped rather than errored, that glob=None lists everything while an empty string matches nothing, and that matching is case-insensitive. It also warns that 'ref' is an opaque identifier and not a disk filename, preventing a likely misuse.

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?

Front-loaded with the resource and returned fields, then the ref caveat, then filtering, then paging. Every clause earns its place, though the single dense paragraph packs several distinct ideas (return shape, ref semantics, glob rules, paging) that could be marginally easier to scan as separate sentences.

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

Completeness5/5

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

An output schema exists, so return values need not be enumerated, yet the description still names the key fields. Combined with complete filtering and paging semantics, nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must define all three parameters, and it does: glob semantics (case-insensitive id match, default None vs empty string), and offset/max_results as paging controls with documented defaults and caps. This adds substantial meaning beyond the bare anyOf integer/string schema.

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?

States a specific verb ('List') and resource ('decisions') plus the exact fields returned (ids, titles, statuses, refs) and the scoping ('in the configured decision base directory'). It also distinguishes itself from the by-id sibling ('for context before addressing one by id') and from get_dec for ref-based lookups, so an agent can separate it from the many list_*/get_* siblings.

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

Usage Guidelines4/5

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

Gives a clear use context (get an overview before addressing a decision by id) and names the alternative for a specific case ('use it with the get_dec tool instead' for refs). It stops short of stating when NOT to use this tool or why to prefer it over other list_* siblings, but the primary routing decision is covered.

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