Skip to main content
Glama
jeel00dev

Excalidraw MCP Server

by jeel00dev

list_diagrams

Retrieve a list of all Excalidraw diagrams previously generated by this server, allowing you to review and manage your creations.

Instructions

List all Excalidraw diagrams previously generated by this server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual handler function for the 'list_diagrams' MCP tool. It lists all .excalidraw files in ~/excalidraw_diagrams/, showing filename and size in KB.
    @mcp.tool()
    async def list_diagrams() -> str:
        """List all Excalidraw diagrams previously generated by this server."""
        from pathlib import Path
    
        diagrams_dir = Path.home() / "excalidraw_diagrams"
        if not diagrams_dir.exists():
            return "No diagrams found. Generate one first with generate_diagram()."
    
        files = sorted(diagrams_dir.glob("*.excalidraw"))
        if not files:
            return f"Directory exists ({diagrams_dir}) but contains no .excalidraw files yet."
    
        lines = [f"Diagrams in {diagrams_dir}:"]
        for f in files:
            kb = f.stat().st_size / 1024
            lines.append(f"  {f.name}  ({kb:.1f} KB)")
        return "\n".join(lines)
  • Registration via the @mcp.tool() decorator on the async function, which registers 'list_diagrams' as an MCP tool on the FastMCP server instance.
    @mcp.tool()
    async def list_diagrams() -> str:
        """List all Excalidraw diagrams previously generated by this server."""
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool lists diagrams previously generated by this server, implying read-only behavior. However, it does not elaborate on ordering, pagination (if any), or authorization. Given the tool's simplicity, this is adequate.

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 sentence that immediately conveys the tool's purpose. It is concise and front-loaded with no wasted words.

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?

Given zero parameters and an existing output schema, the description provides all necessary information for an agent to understand and invoke the tool correctly. It is complete for its complexity.

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?

There are zero parameters, and schema coverage is 100%. The description has no need to explain parameters. Per guidelines, a baseline of 4 is appropriate for tools with no parameters.

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 verb ('list') and resource ('all Excalidraw diagrams previously generated by this server'). It distinguishes from sibling tools: generate_diagram creates diagrams, check_llm_status checks LLM status, so there is no ambiguity.

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?

Although the description does not explicitly state when to use this tool versus alternatives, the context makes it obvious: it lists all diagrams, while siblings create or check status. The simplicity means the purpose is self-evident, but a slight lack of explicit guidance prevents a 5.

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/jeel00dev/exclalidraw_mcp'

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