Skip to main content
Glama
diagrammo
by diagrammo

put_space_diagram

DestructiveIdempotent

Write a DGMO diagram into a Diagrammo Cloud space, by folder and title: updates the diagram with that title in that folder, or creates it (private) when there is none. Re-sending identical source changes nothing.

Instructions

Write a DGMO diagram into a Diagrammo Cloud space, by folder and title: updates the diagram with that title in that folder, or creates it (private) when there is none. Re-sending identical source changes nothing. Returns JSON { action: "created" | "updated", id, title, folder, version }. Needs DGMO_API_KEY (a space API key) in the server environment. Errors name the cause: 401 bad or revoked key, 403 not allowed, 404 no such space or folder, 409 another write landed first (call again). Call validate_diagram first; this does not validate.

Input Schema

NameRequiredDescriptionDefault
dgmoYesDGMO diagram markup
titleYesDiagram title within the folder.
folderNoFolder path from the space root, e.g. "docs/architecture". Omit for the root.
space_idYesThe space the API key belongs to (the key does not name it).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.29.11

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: idempotent no-op on identical source, created-private default, the exact return envelope, an auth requirement (DGMO_API_KEY in the server environment), and a mapped error-code table with a retry instruction for 409. That is exactly the extra behavioral detail annotations cannot carry.

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 the core action, then semantics, return shape, auth, and errors in descending priority. Dense but nearly every clause carries information; the error-code enumeration is the one slightly chunky element.

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?

No output schema exists, yet the description spells out the return object fields (action, id, title, folder, version) and the failure modes. Combined with 100% schema coverage, an agent has everything needed to call and interpret the result correctly.

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%, so the baseline is 3; the description still adds meaning by explaining that (folder, title) is the lookup key and that the key/space relationship is loose ('the space the API key belongs to' is echoed in the schema). It stops short of describing the dgmo payload's format beyond 'markup'.

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?

States a specific verb and resource ('Write a DGMO diagram into a Diagrammo Cloud space') plus the exact addressing scheme (folder + title) and the upsert semantics. An agent can distinguish this from get_space_diagram or render_diagram without opening any schema.

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?

Gives a clear precondition and names the alternative: 'Call validate_diagram first; this does not validate.' It also explains the create-vs-update selection rule, which functions as usage guidance. It stops short of explicitly stating when not to use it (e.g., versus preview or list tools), so it sits just below the top.

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