Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update Line Item

update_line_item
Idempotent

Update a specific line item in a material requirements document by changing quantity, item, or notes. Only send fields to change; omitted fields retain their current values.

Instructions

Updates properties such as quantity, item, and notes for a specific line item in a material requirements document. The document must not be in Final status for line items to be updated. 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 material_requirement_id, id must identify existing parent records — resolve them with the matching list tool first. Returns the modified line item 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: material_requirement_id, 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/{material_requirement_id}/line_items/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — unique identifier of the Materials Management resource
quantityNoJSON request body field — the quantity for this Materials Management operation
company_idYesURL path parameter — the company identifier
project_idYesURL path parameter — the project identifier
material_requirement_idYesURL path parameter — the material requirements ID
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description discloses the Final-status constraint, partial update PATCH semantics, defaulting behavior, success return value, and common HTTP error statuses (401/403/404). This adds substantial behavioral context that annotations alone do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence contributes: action, precondition, patch semantics, defaults, id resolution, return value, error handling, required parameters, API location, and endpoint. It is front-loaded with the primary purpose and well-structured for an agent to parse.

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 5-parameter schema, no output schema, and the provided annotations, the description covers all essential aspects: what it does, when it can be used, how to construct the PATCH request, what to expect on success/failure, and the exact endpoint. No glaring gaps remain.

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 coverage is 100% for the five parameters, so the baseline is 3. The description adds meaningful semantics beyond the schema: company_id/project_id defaulting via procore_set_config, the requirement that material_requirement_id and id reference existing records, and the instruction to use list tools first. However, it also mentions 'item' and 'notes' as updatable fields not present in the schema, which slightly muddies the parameter mapping.

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 uses a specific verb ('Updates') and clearly identifies the resource ('a specific line item in a material requirements document'). It also lists the key modifiable properties (quantity, item, notes), which distinguishes it from other update tools in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit preconditions and directives: the document must not be in Final status, only changed fields should be sent, omitted fields retain values, and ids must be resolved with the matching list tool first. It also explains defaults for company_id/project_id, which is crucial for correct invocation.

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