Skip to main content
Glama

draft_library_assemblies

Draft quantity recipes from an attached file, mapping components to existing cost book items and validating each draft so an estimator reviews it before anything is added.

Instructions

Draft company assemblies (quantity recipes) from an attached file: each {name, trade, measure_kind (area|linear|count|each|volume), components: [{item, unit, role (finish|adhesive|prep|trim|labor|sundry...), basis (area_sf|perimeter_lf|wall_sf|count|volume_cy|manual|formula), coverage (basis units per purchase unit), waste_pct (fraction), manual_qty, qty_formula, cost_item_ref, productivity_ref}], params}. Components point at EXISTING cost book items or productivity rates by id (read_costbook_records), so import those first. Use only quantities the file states; ask about anything missing. The shared validator checks every draft; nothing is added until the person adds it from the chat. Lands as pencil (pending the estimator's review), never ink.

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": {
      "intake_id": "<intake_id>",
      "assemblies": "<assemblies>"
    },
    "name": "draft_library_assemblies"
  }
}

Input Schema

NameRequiredDescriptionDefault
intake_idYes
assembliesYes
explanationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the full lifecycle: the shared validator checks every draft, nothing is persisted until the person adds it from chat, and the result lands as "pencil" pending estimator review rather than committed "ink". That tells the agent the write is staged and reviewable, which the destructiveHint=false/idempotentHint=false hints alone do not convey.

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 action and the payload shape, then closes with the safety/lifecycle sentence, so the important material is early. The middle is a single very dense nested-brace clause that is hard to scan, and a little structure would improve it without losing content.

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?

For a 50-item bulk draft tool with no output schema and near-zero schema documentation, the description supplies the payload contract, the prerequisite lookup, the validation step, and the review lifecycle. The only real omission is the origin and role of intake_id, which is a minor gap given how much else is covered.

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 0% and the assemblies array is declared only as a bare object, so the description carries the load — and it does, enumerating every component field including enums for measure_kind, role, and basis, plus the meaning of coverage and waste_pct. However, intake_id and explanation are never explained (where the 32-hex intake id comes from, what explanation is for), leaving two of three parameters undocumented.

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 ("Draft company assemblies (quantity recipes) from an attached file") and immediately scopes it with the component/payload model, so an agent knows this is a bulk-draft-from-file operation rather than a single-assembly create. The reference to read_costbook_records for id resolution separates it from the read-only siblings.

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 an explicit prerequisite ordering ("Components point at EXISTING cost book items... so import those first") and a data-honesty rule ("Use only quantities the file states; ask about anything missing"). It does not name an alternative drafting path such as draft_company_setup or say when not to use this tool, so it stops short of full when/when-not coverage.

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