Skip to main content
Glama
cotletdev

Contractor Foreman MCP Server

by cotletdev

List cost codes

list_cost_codes
Read-onlyIdempotent

Retrieve active cost codes with code number, name, parent group, and ID for estimate, change order, and invoice items; search by code or name.

Instructions

The company's cost codes, to put on estimate, change order and invoice items.

Every active cost code with its code number, name and parent group. cost_code_id is what the item tools take. search narrows by code or name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoMatches the code or the name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds non-obvious behavior: only ACTIVE cost codes are returned, and the exact fields in the response. It does not mention result volume, ordering, or pagination, which keeps it at 4.

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 short paragraphs, no wasted words, and the identifying information comes first. The second paragraph is slightly telegraphic ('Every active cost code with its code number, name and parent group') rather than smoothly integrated, but it is efficient overall.

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 no output schema, the description usefully enumerates the returned fields and the active-only filter, and annotations cover safety. For a zero-required-parameter list tool this is nearly complete; only ordering/result-size expectations are unaddressed.

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 coverage is 100% and the single 'search' param is fully documented there. The description's 'search narrows by code or name' essentially restates the schema description ('Matches the code or the name') with only a mild addition ('narrows' implying subset filtering). Baseline 3 is appropriate.

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?

Names the resource (company cost codes), its fields (code number, name, parent group), and its role (attaching to estimate, change order and invoice items). The line 'cost_code_id is what the item tools take' distinguishes it from the sibling item tools (add_estimate_items, add_change_order_items, add_invoice_items). It stops short of explicitly naming an alternative tool to use instead, keeping it at 4.

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?

The phrase 'to put on estimate, change order and invoice items' plus 'cost_code_id is what the item tools take' gives the agent a concrete pre-requisite workflow: call this before the item-adding tools. No explicit exclusions or when-not conditions are given, so it falls short of 5.

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