Skip to main content
Glama

list_diagrams

Identify diagram blocks in Markdown files by detecting their type and location without rendering visualizations.

Instructions

List all detected diagram blocks without rendering them.

Args: file_path: Path to a .md file. raw_markdown: Raw markdown string.

Returns: List of dicts with diagram_type, line_start, and line_end for each block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo
raw_markdownNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does (detection without rendering) and describes the return format, but doesn't mention error conditions, performance characteristics, or whether both parameters can be used simultaneously. It provides basic behavioral context but lacks depth for a tool with two parameters.

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?

The description is perfectly structured and concise: a clear purpose statement followed by separate Args and Returns sections. Every sentence earns its place, with no redundant information. The three-part structure (purpose, parameters, returns) is efficient and well-organized.

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?

Given the tool has an output schema (implied by 'Returns' section), the description doesn't need to fully document return values. However, with no annotations and 0% schema description coverage for inputs, the description should do more to explain parameter usage and constraints. It provides adequate context for a detection tool but could better address the two alternative input parameters.

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 0%, so the schema provides no parameter documentation. The description mentions both parameters in the Args section but only provides their names without explaining their purpose, relationship, or constraints. While it acknowledges the parameters exist, it doesn't add meaningful semantic information beyond what's already visible in the schema structure.

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 clearly states the specific action ('List all detected diagram blocks') and resource ('diagram blocks'), distinguishing it from sibling tools like 'render_all_diagrams' and 'render_diagram' by specifying 'without rendering them'. This provides immediate differentiation and clarity about what the tool does versus its alternatives.

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?

The description implies usage context by stating 'List all detected diagram blocks without rendering them', which suggests this tool is for detection/analysis rather than visualization. However, it doesn't explicitly state when to use this versus the rendering siblings or provide exclusion criteria. The context is clear but lacks explicit alternatives guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rutika196/vizdown-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server