Skip to main content
Glama
TylerIlunga

Procore MCP Server

Adds Attachments To A Defect Resource.

adds_attachments_to_a_defect_resource

Attach a file to an existing defect in Procore by providing the defect, company, and project IDs. Creates an attachment record and returns the new attachment ID.

Instructions

Either provide a file_id already obtained from the File Access Service (FAS), or omit it to have FAS create a new file record. The response includes the file_id and, when FAS creates the record, an upload URL the client uses to upload the file content. 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. Creates the attachment and returns it with its new id (HTTP 201); calling it again creates another record. 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: POST /rest/v2.0/companies/{company_id}/projects/{project_id}/materials_mgmt/defects/{id}/attachments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — the ID of the defect
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?

Reveals non-idempotent behavior ('calling it again creates another record'), HTTP 201 response, upload URL for new file records, and common error statuses with causes. This substantially enriches the sparse annotations, which only hint read-only/idempotent/destructive characteristics.

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 dense but well-structured: FAS behavior, defaults, creation semantics, errors, required params, and API reference. Slightly long but each sentence adds value; no fluff.

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?

Covers response details, error codes, endpoint, prerequisite to resolve id, and permission-related HTTP statuses. Lacks explicit file content upload instructions, but that is outside the tool's scope. The file_id discrepancy is a notable gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

While the schema already documents the three required path parameters, the description introduces a file_id parameter not present in the schema (additionalProperties:false) and claims company_id/project_id default when omitted despite being required. This creates harmful ambiguity about actual callable parameters, outweighing the useful note about id resolving to an existing parent.

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 it creates an attachment for a defect resource, with a specific verb and resource. It distinguishes from sibling attachment tools by naming the defect endpoint and explaining the FAS behavior.

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 contextual guidance: resolve the parent defect with a list tool first, use a pre-obtained file_id or let FAS create a new record, and notes defaults for company/project. No explicit exclusions or named alternatives, but the context is clear for this tool.

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