Skip to main content
Glama

List use cases

list_use_cases

List business use cases derived from endpoints and roles, with optional AI refinement to add preconditions, flows, restrictions, and feature assessments.

Instructions

Business use cases derived from endpoints + roles. mode=heuristic is instant and deterministic; mode=claude asks Claude to merge/rename them into real business use cases with preconditions, flows, restrictions and a feature assessment (needs ANTHROPIC_API_KEY on the server).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
rootYesAbsolute path of the project to analyse (a mounted path such as /workspace when running in Docker).
actorNoFilter by actor/role name.
formatNoOutput format (default markdown).
featureNo
refreshNoRe-scan the project instead of using the cached analysis.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It meaningfully discloses that heuristic mode is deterministic, claude mode delegates to Claude and requires ANTHROPIC_API_KEY, and claude mode produces preconditions, flows, restrictions, and feature assessments. It stops short of mentioning caching/refresh behavior or external API side effects.

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 compact and front-loads the purpose before diving into mode details. It earns its place, though the single dense sentence could be slightly clearer if broken into two sentences or bullets.

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 tool with no annotations, no output schema, and multiple mode-dependent behaviors, the description leaves gaps: it does not mention the default mode, whether a prior scan is required, how refresh affects caching, or the shape of the returned use cases. The provided info is enough for basic heuristic use but not fully self-sufficient.

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?

The description adds real semantics for the mode parameter, explaining what each enum value does. The schema already documents root, actor, format, and refresh, but the feature parameter is undocumented in both the schema and the description, and no default mode is specified.

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 identifies the resource ('business use cases') and its source ('endpoints + roles'), which is specific enough to distinguish the tool from siblings. Though the verb 'list' appears only in the title, the meaning is clear and the two modes are explained.

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?

The description gives practical mode-selection guidance: heuristic is instant and deterministic, while claude merges/renames into richer use cases and requires an API key. However, it does not explain when to choose this tool over siblings like extract_endpoints or explain_feature.

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