Skip to main content
Glama

read_costbook_records

Read-onlyIdempotent

Retrieves exact current company costbook records in bounded pages for estimating, including material/equipment costs, labor classes, crews, productivity, cost codes, taxes, and assembly components.

Instructions

Read exact current company material/equipment costs, labor classes, crews, productivity, cost codes, taxes or assembly components in bounded pages. For assembly_components, supply template_id from assembly_templates or list_library; template defaults and complete formula/cost-binding components are retained. Follow next_offset with expected_revision. A blocked record supplies next_tool for bounded JSON fragments: follow every next_tool and join fragments in offset order before interpreting that complete record. Read linked crew, labor-class and equipment IDs before inferring a loaded crew rate. These are current library records, not quotations or frozen submitted-bid rates; use estimate_summary for the actual project pricing. No writes.

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": {
      "kind": "<kind>"
    },
    "name": "read_costbook_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
kindYes
limitNo
offsetNo
template_idNo
expected_revisionNo
record_text_charsNo
record_text_offsetNo
expected_record_sha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, yet the description adds substantial context beyond them: results come in bounded pages, next_offset must be followed with expected_revision, and a blocked record returns next_tool whose fragments must be joined in offset order before interpreting the record. These are non-obvious protocol behaviors an agent would otherwise get wrong.

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?

Dense and front-loaded: the resource and scope come first, then conditional rules, then the pricing caveat. Some sentences pack multiple instructions (the next_tool fragment-joining rule) and read as compressed, but almost every clause carries operational information rather than filler.

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 a 9-parameter, no-output-schema, 0%-coverage tool, the description covers the difficult parts (pagination integrity, blocked-record recovery, cross-record ID resolution) but omits meaning for several inputs and says nothing about the shape of returned records beyond 'bounded pages'. It is strong on protocol but incomplete on parameters.

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% across 9 parameters, so the description must carry the load. It explains kind-dependent behavior for assembly_components (template_id), expected_revision for pagination, and implies offset chaining and record text fragmenting, but leaves q, limit, record_text_chars, record_text_offset, and expected_record_sha256 entirely unexplained, so several parameters remain opaque.

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 (read) and resource (costbook records) and enumerates the exact record kinds returned: material/equipment costs, labor classes, crews, productivity, cost codes, taxes, assembly components. It explicitly separates itself from quotations, frozen bid rates, and estimate_summary, so an agent can distinguish it from sibling read tools without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when-not guidance ('these are current library records, not quotations or frozen submitted-bid rates; use estimate_summary for the actual project pricing') and a concrete alternative source for the template_id prerequisite ('from assembly_templates or list_library'). It also states an ordering prerequisite: read linked crew, labor-class and equipment IDs before inferring a loaded crew rate.

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