Skip to main content
Glama
TylerIlunga

Procore MCP Server

Sync Material Requirements Lines

sync_material_requirements_lines
Idempotent

Update or create material requirements lines in Procore by referencing existing header and material IDs. Supports batch sync of up to 1000 records per request.

Instructions

Creates or updates material requirements lines identified using either ids or origin_ids. The material on the line must already exist and can be specified using either item_id or item_origin_id. The connected material requirements header must already exist. The maximum number of entities per request is 1000. Exceeding this limit will result in a 413 response. See https://developers.procore.com/documentation/using-sync-actions for more information. Send only the fields you intend to change; omitted fields keep their current values. 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 the modified material requirements line 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: id, company_id, project_id. Procore API (v2.0): Resource Management > Materials Management. Endpoint: PATCH /rest/v2.0/companies/{company_id}/projects/{project_id}/materials_mgmt/material_requirements/{id}/line_items/sync

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — material requirements header ID
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 annotations (readOnly=false, idempotent=true, destructive=false), the description discloses partial-update semantics, the 1000-entity limit with 413 error, defaulting of company_id/project_id from config, error status meanings (401/403/404), and the success return value. This is rich behavioral context that cannot be inferred from the annotations alone.

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 action and then covering prerequisites, limits, semantics, and error handling. Each sentence provides useful information, though the length is higher than strictly necessary. It could be trimmed slightly, but it remains efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The core payload for the sync operation is absent from both the schema and description. The tool only accepts path parameters (id, company_id, project_id), yet the description describes syncing lines with ids/origin_ids and item_id/item_origin_id without explaining how those should be supplied. This is a critical gap that prevents correct invocation. No output schema exists either, so the description must compensate, but it doesn't resolve the payload ambiguity.

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?

The schema covers all three parameters, but the description refers to non-schema fields (ids, origin_ids, item_id, item_origin_id) that are not present in the input schema and are explicitly disallowed by additionalProperties: false. This actively misleads an agent into attempting invalid parameters. While it does add context for the path parameters (defaults, id resolution), the net effect is confusing and inadequate.

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 'Creates or updates material requirements lines', using a specific verb and resource. It distinguishes this from header-level sync (sync_material_requirements_headers appears as a sibling) and provides additional scoping details like the requirement for an existing header.

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 gives clear usage context: prerequisites (material must exist, header must exist), instruction to resolve the parent record with the list tool first, and the 1000-entity limit. However, it does not explicitly name alternative tools or say when NOT to use this tool, so it falls short of a perfect score.

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