Skip to main content
Glama

pid

Create and annotate P&ID drawings in AutoCAD by setting up layers, inserting CTO symbols, drawing process lines, adding equipment tags, valves, instruments, pumps, and tanks.

Instructions

P&ID drawing with CTO symbol library.

Operations:
  setup_layers     — Create standard P&ID layers.
  insert_symbol    — data: {category, symbol, x, y, scale?, rotation?}
  list_symbols     — data: {category}
  draw_process_line — data: {x1, y1, x2, y2}
  connect_equipment — data: {x1, y1, x2, y2}
  add_flow_arrow   — data: {x, y, rotation?}
  add_equipment_tag — data: {x, y, tag, description?}
  add_line_number  — data: {x, y, line_num, spec}
  insert_valve     — data: {x, y, valve_type, rotation?, attributes?}
  insert_instrument — data: {x, y, instrument_type, rotation?, tag_id?, range_value?}
  insert_pump      — data: {x, y, pump_type, rotation?, attributes?}
  insert_tank      — data: {x, y, tank_type, scale?, attributes?}

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": {
      "operation": "<operation>"
    },
    "name": "pid"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNo
operationYes
include_screenshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations only supply readOnlyHint=false, so the agent knows this mutates state; the description reinforces that by disclosing which drawing primitives exist and what payload each one takes. However it says nothing about what document/drawing the operations act on, whether prior setup is required, whether existing entities are affected, or what include_screenshot does. Some behavioral value added, but key traits are missing and it does not contradict the annotations.

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?

Two-part structure: a one-line statement of domain, then a scannable operation table with payload shapes. Every line carries payload information, so it is dense but not padded; the main cost is that the operations block is unstructured prose rather than aligned to the actual schema.

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?

For an 11-operation dispatcher with no output schema and 0% schema coverage, the description is a reasonable minimum: an agent knows the operation names and their data keys. But it omits prerequisites, target-document behavior, return values, the `include_screenshot` flag, and any error semantics, so an agent could still call it incorrectly.

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 0%, so the description must carry the load, and it does enumerate the per-operation `data` shapes with optional-field markers (scale?, rotation?, attributes?), which is meaningfully more than the bare anyOf object in the schema. Still, it leaves `operation` as an undeclared free string with no enum, never marks whether `data` is required for a given operation, and omits `include_screenshot` entirely.

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 title line "P&ID drawing with CTO symbol library" plus an enumerated operation list (setup_layers, insert_symbol, draw_process_line, etc.) makes it clear this tool draws P&ID diagrams in a specific symbol library. It separates itself from generic siblings like drawing or entity by the domain-specific operation set, though it never names a sibling to contrast against.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description lists operations but gives no when-to-use guidance: nothing says when to pick pid over drawing, annotation, or block, no ordering or prerequisites (e.g. that setup_layers should run before inserting symbols), and no exclusions. An agent must infer usage entirely from operation names.

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