Skip to main content
Glama
U-C4N
by U-C4N

P&ID: Parse Tag

pid_tag_parse
Read-only

Parse ISA-5.1-2009 PID tags to extract first letter, modifier, functions, loop number, and suffix. Returns standard description or invalid letter; equipment prefixes are customizable.

Instructions

ISA-5.1-2009 Table 4.1 as a grammar: first letter, modifier, readout and output functions, trailing high/low, loop number and suffix — with the standard's description ("Flow Indicating Controller") or the first offending letter. Equipment prefixes are not standardised, so the default map (P pump, V vessel, E exchanger, ...) can be replaced per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagYese.g. FIC-101, 10-PDT-203A, P-101A
kindNoauto | instrument | equipmentauto
equipment_prefixesNoReplace the default equipment prefix map, e.g. {'Q': 'quench tower'}

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine behavioral detail beyond that: on success it returns the standard's own description (e.g. 'Flow Indicating Controller'), on failure the first offending letter, and the prefix map is replaceable. This tells the agent what to expect from a call in both outcomes.

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 dense sentences that are front-loaded around the grammar model, with the override nuance placed last. It is information-rich and largely waste-free, though the phrasing is compressed enough to read as slightly opaque on first pass.

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

Completeness4/5

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

With an output schema present, return values need not be explained, and annotations cover safety, so the description's job is mainly to convey the parsing model, which it does well. Minor gaps remain around the 'kind' modes (auto/instrument/equipment) and no explicit routing to sibling tools, but overall the definition is sufficient to call it correctly.

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 schema already documents tag, kind, and equipment_prefixes with examples. The description reinforces the prefix-map override ('Q quench tower' style) and the letter-by-letter grammar, but adds little beyond the schema, so the baseline of 3 applies.

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 states a specific verb (parse) and resource (P&ID tag) and outlines the exact ISA-5.1 grammar components it decodes, so the agent understands the operation precisely. It does not, however, name or contrast itself with pid-related siblings such as pid_instrument_index or pid_equipment_list, so it falls short of full sibling differentiation.

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?

The note that equipment prefixes are not standardised and the default map 'can be replaced per call' implies when to override the map, which is useful context. But there is no explicit statement of when to use this parser versus related index/list tools, nor any stated prerequisites or exclusions, leaving usage mostly inferred.

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

Deploy Server

Other Tools