Skip to main content
Glama

understand_diagram

Interpret diagram image files (flowcharts, architecture diagrams) and convert their visual content into textual descriptions, enabling text-only LLMs to understand and reason about diagrams.

Instructions

解读流程图/架构图等图表 / Interpret a diagram image file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_pathYes图片文件的绝对路径 / Absolute path to the image file.
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It only states the basic action and resource type, but does not mention output format, limitations, or what 'interpret' entails (e.g., does it return a summary, a JSON structure, or something else?). This leaves significant ambiguity for the agent.

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 a single, front-loaded sentence with no unnecessary words. It is concise and bilingual, with no fluff or repetition of schema information.

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

Completeness2/5

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

Given the tool's simplicity (one well-documented parameter) and lack of annotations or output schema, the description still feels incomplete because it does not explain what the agent should expect as a result, any prerequisites, or edge cases. The description is too minimal to fully guide the agent.

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

Parameters4/5

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

The schema already describes image_path as 'Absolute path to the image file.' The tool description adds value by specifying that the image should be a diagram (flowchart/architecture), giving context about what kind of image is expected. This goes beyond the schema description, so a score above baseline is warranted.

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 tool's function with a specific verb 'interpret' and a specific resource 'diagram image file'. It names diagram types (flowcharts, architecture diagrams) which distinguishes it from sibling tools like analyze_image (general images) and analyze_chart (charts).

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?

Usage context is implied: use this when you have a diagram to interpret. However, there is no explicit guidance on when to use this instead of sibling tools like analyze_image or extract_text, and no exclusions or alternatives are mentioned.

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/me9rez/llm-vision-mcp'

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