Skip to main content
Glama
StructuraMCP

StructuraMCP

Validate a Bill of Quantities

validate_boq_schema
Read-onlyIdempotent

Validates a Bill of Quantities against a strict schema and checks that quantity × rate equals amount and that totals reconcile, helping catch data errors before use.

Instructions

Validate a BoQ against the strict schema and check qty x rate = amount and totals. Free.

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": {
      "document": "<document>"
    },
    "name": "validate_boq_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesA BoQ JSON object (e.g. parse_document output 'document')

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint and idempotentHint, so the safety profile is already covered, and the description adds the substantive detail of which arithmetic and schema checks run. It does not disclose whether validation stops at the first error or reports all violations, nor whether failure is returned as data or as an error. 'Free.' signals no cost/rate-limit concern, a small useful signal.

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?

A single front-loaded sentence with the validation checks first and no redundant restatement of the title. The trailing 'Free.' fragment is terse and mildly extraneous but costs almost nothing.

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?

An output schema exists to carry return values, the single parameter is fully documented, and annotations cover the read-only/idempotent profile, so the description only needed to convey what is being validated — which it does. The remaining gap is failure semantics (all-errors vs fail-fast), which the output schema may or may not cover.

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?

There is a single parameter with 100% schema description coverage that already explains the document as a BoQ JSON object, e.g. parse_document output. The description adds no further meaning about accepted structure, required BoQ fields, or tolerance on arithmetic checks, so the baseline of 3 applies when the schema does the work.

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?

States a specific verb and resource ('Validate a BoQ') and enumerates the actual checks performed: strict schema conformance, qty x rate = amount, and totals. That is more than a restated title. It doesn't explicitly contrast with siblings, but the described scope is concrete enough to distinguish it from compare_supplier_quotes and parse_document.

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 gives no when-to-use guidance, no prerequisites, and no alternatives to consider; the only added clause is 'Free.', which is a commercial note rather than invocation guidance. The only usage hint is indirect, coming from the schema's mention of parse_document output as the expected input shape.

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