Skip to main content
Glama

Compose a diagram

compose_diagram
Read-onlyIdempotent

Draw a tech stack diagram: a picture and an editable diagram on tekyous.dev. By default it shows the stack: catalogue tool slugs (look each up with search_tools) in three to five groups named by role, with no connectors, no numbered steps and at most two notes; connectors only when the user asks how the parts connect. A custom tool is a technology the catalogue lacks, under its own short name with what it does in its caption, never a step, module or feature of the project. Pass the spec as diagram (format 'tekyous-diagram'; the design_stack prompt explains it) or a full Tekyous canvas file. Returns an image URL (PNG), a builder link that opens the diagram fully editable, slugs the catalogue does not know, custom_matches (custom tools the catalogue lists, each with the change that swaps it in: apply it), warnings from the catalogue's rules, layout issues in the drawn picture, advice (where the spec strays from a plain stack: follow it unless the user asked for that), the look used with the others available (look: mention them to the user), and the document to send again when revising. In hosts that render MCP Apps, the result shows as the Tekyous diagram widget: the picture in the chat, inline and full screen, with an Open in builder button, so the user sees it without it being drawn again; there, don't put the image in your reply as well (no image URL, markdown or HTML image). Elsewhere, give the image URL and the builder link.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "diagram": "<diagram>"
    },
    "name": "compose_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
diagramYesThe short form: tools by slug in groups, with custom tools for what the catalogue lacks. No positions; Tekyous lays it out (a full canvas file, format tekyous-canvas, places everything itself). By default a stack: groups by role, no connectors, one or two notes at most.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Well beyond the annotations (readOnly/idempotent/non-destructive), it enumerates the return payload: image URL, editable builder link, unknown slugs, custom_matches with the swap-in change, catalogue rule warnings, layout issues, advice, the look used plus alternatives to mention, and the reusable document. It also discloses host-dependent behaviour — the MCP Apps widget renders inline and the agent must then suppress the image URL/markdown in its reply — which an agent could not infer from any structured field.

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 purpose and defaults before the return-value catalogue, and nearly every clause carries operative information. It is, however, one very dense block of run-on clauses (returns list, widget behaviour, and fallback instructions all in a single paragraph), which costs readability for an agent parsing it once.

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?

For a one-parameter but highly structured tool with an output schema, the description covers generation defaults, spec format acceptance, the full return contract, how to act on each returned signal, and host-specific rendering rules. Nothing an agent needs to call it or to handle its result correctly is missing.

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?

Schema coverage is 100% and the single `diagram` parameter is already documented in the schema, so the baseline is 3. The description adds real meaning by naming the accepted shapes: the short 'tekyous-diagram' spec (explained by the design_stack prompt) or a full Tekyous canvas file, plus the default-stack conventions that govern how that object should be populated.

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?

Opens with a concrete verb and resource: "Draw a tech stack diagram: a picture and an editable diagram on tekyous.dev", and immediately specifies the default content (catalogue slugs in 3-5 role-named groups, no connectors, no numbered steps, max two notes). It routes to a sibling for lookups ("look each one up with search_tools") and implies revision by returning "the document to send again when revising", though it never names revise_diagram explicitly.

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?

Strong conditional guidance: connectors "only when the user asks how the parts connect", notes left out by default, advice to be followed "unless the user asked for that", and custom_matches changes to be applied. What it lacks is explicit routing between this tool and siblings like revise_diagram or get_stack for the create-vs-refine or create-vs-inspect decision.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.