Skip to main content
Glama
TylerIlunga

Procore MCP Server

Adds Attachments To A Receipt Resource.

adds_attachments_to_a_receipt_resource

Add an attachment to a specific receipt in Procore by providing the receipt ID, company ID, and project ID. Returns the newly created attachment record with its 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/receipts/{id}/attachments

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
Behavior4/5

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

Annotations already declare idempotentHint=false and readOnlyHint=false, and the description reinforces this with 'calling it again creates another record.' It adds valuable behavior: FAS creates a new file record when file_id is omitted, returns an upload URL, and error cases (401/403/404) are disclosed. This goes beyond the annotations but could be richer on authorization requirements.

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 a dense single paragraph covering key behavior, parameters, defaults, error handling, and endpoint information. Every sentence adds value, though it could be better structured with line breaks or bullets for improved scannability. It is not excessively verbose.

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?

Given the absence of an output schema, the description fully explains return values (file_id, upload URL, new id with HTTP 201), error codes, prerequisites, and defaults. It provides a complete picture for an agent to call this tool correctly, including the endpoint path.

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 covers all three parameters with basic descriptions, but the description adds meaningful context: company_id and project_id default to procore_set_config values, and id must identify an existing parent record resolved from a list tool. This enhances the schema's minimal field definitions.

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 this tool creates an attachment on a receipt resource, with a specific verb ('Creates the attachment') and resource ('receipt resource'). It also differentiates from sibling attachment tools by scoping to receipts and mentioning the File Access Service (FAS) integration, making it specific to this endpoint.

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 description provides clear guidance: 'Either provide a file_id already obtained from the File Access Service (FAS), or omit it to have FAS create a new file record.' It also instructs to resolve the parent id with the matching list tool first, and notes defaults for company_id/project_id. However, it does not explicitly contrast with sibling attachment tools for when to use this specific one.

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