Skip to main content
Glama
TylerIlunga

Procore MCP Server

Get Defect By ID

get_defect_by_id
Read-onlyIdempotent

Retrieve complete details for a specific defect, including header fields and line item information. Use this read-only tool when you need the full record for a known defect ID.

Instructions

Returns the full details of a specific defect, including all header fields and associated line item information. Use this when you already know which defect you want and need its full field set. company_id and project_id default to the values set by procore_set_config when omitted, and id must identify an existing parent record — resolve it with the matching list tool first. Returns a single JSON object describing the defect. 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: id, company_id, project_id. Procore API (v2.0): Resource Management > Materials Management. Endpoint: GET /rest/v2.0/companies/{company_id}/projects/{project_id}/materials_mgmt/defects/{id}/details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — unique identifier of the Materials Management resource
company_idYesURL path parameter — the company identifier
project_idYesURL path parameter — the project identifier
Behavior5/5

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

Beyond the readOnlyHint annotation, the description adds defaulting behavior for company_id/project_id, a prerequisite that id must resolve to an existing record, return type as a single JSON object, and concrete failure modes (401/403/404) with their meanings. This goes well beyond the annotations' basic safety flags.

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?

The description is long but each sentence adds value (usage, defaults, errors, endpoint). Minor redundancy exists: 'Read-only' repeats readOnlyHint, and 'Required parameters' repeats the schema's required list, but these are brief.

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?

Even without an output schema, the description clarifies the return shape (single JSON object with header and line items), error handling, parameter defaults, and id resolution path. It is fully adequate for an agent to select and invoke this tool.

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 covers all 3 parameters with generic path descriptions, but the description adds crucial semantics: optional company_id/project_id fall back to procore_set_config values, and id must reference an existing parent record resolved via a list tool. This enriches the bare schema.

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 explicitly states 'Returns the full details of a specific defect, including all header fields and associated line item information,' using a specific verb, resource, and scope. This distinguishes it from sibling list/detail tools like get_all_defects or get_defect_header_by_id.

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?

It provides explicit guidance: 'Use this when you already know which defect you want and need its full field set,' and directs users to 'resolve it with the matching list tool first' when the id is unknown. However, it doesn't name specific sibling tools for alternate views (header-only, line-items-only), so slightly less than explicit.

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