Skip to main content
Glama

orchestrator_render_mermaid_trace

Read-onlyIdempotent

Render GitHub-compatible Mermaid state or flowchart diagrams for A2A task transition audits and validated multi-agent DAGs, highlighting critical paths and scope-widening edges.

Instructions

Render a clean GitHub-compatible Mermaid stateDiagram-v2 (task transition audit trail or canonical A2A v1.0.1 FSM) or flowchart LR visualization (validated multi-agent DAG highlighting critical path and scope-widening edges).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "orchestrator_render_mermaid_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDiagram mode (`task_fsm` -> `stateDiagram-v2`, `agent_dag` -> `flowchart LR`).
edgesNoMulti-agent DAG edges when `mode='agent_dag'`.
nodesNoMulti-agent DAG nodes when `mode='agent_dag'`.
task_idNoOptional stored `task_id` to render step-by-step CAS transitions.
tenant_idNoTenant namespace when rendering a stored `task_id`.
max_budget_msNoCritical-path budget ceiling in milliseconds for `agent_dag` rendering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuine context beyond that: output is GitHub-compatible Mermaid, the DAG render highlights the critical path and scope-widening edges, and `max_budget_ms` bounds critical-path computation. It stops short of describing the return payload (raw string vs fenced block) for a tool with no output schema.

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?

A single front-loaded sentence with the verb first and the two output variants enumerated in parallel parentheses. No filler, no restatement of the title, and every clause carries new information.

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

Completeness3/5

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

With six optional parameters, no required fields, and no output schema, the description should clarify which parameters pair with which mode (nodes/edges for `agent_dag`, task_id/tenant_id for `task_fsm`) and what happens if they are omitted. It names the modes and their artifacts but leaves those combinations to inference, which is a meaningful gap for a zero-required-parameter tool.

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 100%, so the baseline is 3; each parameter is already documented including the `mode` enum mapping. The description reinforces what each mode produces but adds no syntax, format, or constraint detail (e.g., node/edge object shape) beyond the schema.

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?

The description gives a specific verb ('Render') plus two named output artifacts (`stateDiagram-v2` for task transition audit trails / canonical A2A v1.0.1 FSM, `flowchart LR` for validated multi-agent DAGs), so an agent knows exactly what comes back. It does not explicitly distinguish itself from sibling `orchestrator_validate_agent_dag`, though the word 'validated' hints that validation is a separate prior step.

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 is only implied through the two modes: pick `task_fsm` for task transitions, `agent_dag` for DAG visualization. There is no explicit when-not guidance, no statement that the DAG should be validated first (a natural sibling), and no mention of what to do when no task_id is supplied.

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