Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update Company File

update_company_file
Idempotent

Update a company file in Procore by modifying its fields, creating a new version. Specify only the fields to change, with company_id and id required.

Instructions

Update a specific File (creates a new file version). Send only the fields you intend to change; omitted fields keep their current values. Pass the record's fields as top-level arguments — they are nested under "file" in the request payload for you. company_id defaults to the value set by procore_set_config when omitted, and id must identify an existing parent record — resolve it with the matching list tool first. Returns the modified company file on success. 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: company_id, id. Procore API: Core > Documents. Endpoint: PATCH /rest/v1.0/companies/{company_id}/files/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — unique identifier of the Documents resource
dataNoJSON request body field — [DEPRECATED] File to use as file data. Please use upload_uuid instead. Note that it's only possible to post a file using a multipart/form-data body (see RFC 2388). Most HTTP libraries will do the r...
nameNoJSON request body field — the Name of the file
parent_idNoJSON request body field — the ID of the parent folder to move the file to
company_idYesURL path parameter — unique identifier for the company.
is_trackedNoJSON request body field — status if a file should be tracked (true/false)
descriptionNoJSON request body field — a description of the file
upload_uuidNoJSON request body field — uUID referencing a previously completed Upload. This is the recommended approach for file uploads. See Company Uploads or Project Uploads endpoints for instructions on how to use uploads. You sho...
checked_out_untilNoJSON request body field — check out a file until the specified time. Admins may reset checkout by sending "null"
explicit_permissionsNoJSON request body field — set file to private (true/false)
custom_field_%{custom_field_definition_id}NoJSON request body field — value of the custom field. The data type of the value passed in corresponds with the data_type of the Custom Field Definition. For a lov_entry data_type the value passed in should be the ID of one ...
Behavior1/5

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

The description claims 'creates a new file version', implying each call mutates state by adding a version. This directly contradicts the annotation idempotentHint: true, which asserts the operation is idempotent. While the description discloses many useful behaviors (error payloads, defaults), the contradiction forces a score of 1.

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, front-loading the core action and then covering update semantics, payload handling, error cases, and the endpoint. Every sentence adds information, and the Procore API reference is useful.

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?

Given the tool's 11 parameters and no output schema, the description covers the key aspects: purpose, partial update behavior, id resolution, error status codes, and required parameters. The only gap is the idempotency contradiction, which makes the behavioral context misleading, but overall it's quite complete.

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?

With 100% schema coverage, the baseline is 3. The description adds value by explaining that record fields are passed as top-level arguments and nested under 'file' in the payload, clarifies company_id default, and emphasizes required parameters. This extra context justifies a 4.

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 'Update a specific File (creates a new file version)', providing a specific verb, resource, and key nuance. It also scopes to company files via the endpoint path, distinguishing it from project file tools like update_project_file.

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 explains partial update semantics ('Send only the fields you intend to change'), how to resolve the id ('resolve it with the matching list tool first'), and the company_id default behavior. It does not explicitly compare against alternative tools like update_project_file, so it doesn't fully exclude alternatives.

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