Skip to main content
Glama
TylerIlunga

Procore MCP Server

List Project Cost Codes

list_project_cost_codes
Read-onlyIdempotent

List distinct project cost codes from vendor data to discover available codes or retrieve their IDs for subsequent API calls. Read-only, returns paginated JSON.

Instructions

Return a distinct list of cost codes in use on vendors for a given project. Use this to discover project cost codes or to look up the id of one before calling a tool that needs it. project_id defaults to the value set by procore_set_config when omitted. Returns a JSON array of project cost codes; page and per_page control pagination and the response reports how many pages remain. Read-only — it changes nothing in Procore. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: project_id. Procore API: Core > Directory. Endpoint: GET /rest/v1.0/projects/{project_id}/directory/filter_options/cost_codes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for paginated results (default: 1, 1-indexed)
per_pageNoNumber of items per page (default: 100, max: 100)
project_idYesURL path parameter — unique identifier for the project.
Behavior5/5

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

Beyond the readOnlyHint, openWorldHint, and other annotations, the description adds extensive behavioral context: pagination behavior ('page and per_page control pagination and the response reports how many pages remain'), default project_id behavior ('defaults to the value set by procore_set_config'), and error response patterns (401/403/404 with explanations). This significantly enhances the agent's understanding of what happens when invoking the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and information-dense without being verbose. It fronts the main purpose, then usage guidance, then pagination, read-only reassurance, error handling, required parameters, and API endpoint. Every sentence contributes valuable context, and nothing feels redundant or wasteful.

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?

The description covers the return type (JSON array), pagination, error handling, defaults, and API endpoint. It is quite complete for a list tool. The only minor gap is that it does not describe the fields contained in each cost code object (e.g., id, code, name), but since no output schema exists, this would be helpful. Still, the description is sufficiently complete for an agent to use the tool effectively.

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?

The schema already provides descriptions for all three parameters (100% coverage). The description adds further meaning by explaining the default behavior of project_id and the purpose of page/per_page for pagination control. This goes beyond the schema's basic parameter descriptions, so it earns a 4 rather than a baseline 3.

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?

The description clearly states the tool's function: 'Return a distinct list of cost codes in use on vendors for a given project.' This specific verb+resource+scope distinguishes it from sibling tools like list_cost_codes (which lists all cost codes) and show_standard_cost_code_list. The purpose is unambiguous and actionable.

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?

Provides explicit usage direction: 'Use this to discover project cost codes or to look up the id of one before calling a tool that needs it.' This gives clear context for when to invoke this tool. It does not explicitly name alternatives or exclusion criteria, but the usage scenarios are well-defined, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TylerIlunga/procore-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server