Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update All Company Segment Items

update_all_company_segment_items
Idempotent

Bulk update selected WBS segment items and their children in Procore by applying the same attributes to all. Handles status deactivation/reactivation, including cost types when enabled.

Instructions

Update All Segment Items with the same attributes. The endpoint handles updating status (deactivating or reactivating) for segment items and their children, including cost types when the cost type deactivation feature is enabled. Deactivating the default cost type (Other) or the last remaining active cost type is not allowed. For bulk status changes on the Cost types (line item types) segment, attributes must contain only status. Any other property in attributes results in 400 Bad Request with an error message. Other segment types may define their own allowed attributes keys. Send only the fields you intend to change; omitted fields keep their current values. company_id defaults to the value set by procore_set_config when omitted, and segment_id must identify an existing parent record — resolve it with the matching list tool first. Returns the modified company segment 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: company_id, segment_id, ids, attributes. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: PATCH /rest/v1.0/companies/{company_id}/work_breakdown_structure/segments/{segment_id}/segment_items/update_all

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesJSON request body field — list of segment item IDs. The API will find and update the children of the provided IDs.
attributesYesJSON request body field — fields to apply to every selected segment item. For bulk **Cost types** status updates (when cost type deactivation is enabled), send **only** `status`; extra keys are rejected with **400 Bad Reque...
company_idYesURL path parameter — unique identifier for the company.
segment_idYesURL path parameter — unique identifier of the segment
Behavior5/5

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

Thoroughly discloses behavior beyond annotations: handles deactivation/reactivation, includes children, enforces restrictions on default cost type, requires attributes constraints, supports partial updates, defaults company_id from config, and details error scenarios (401, 403, 404). No contradiction with annotations.

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 logically structured: purpose, constraints, parameter guidance, error handling, and endpoint. Every sentence provides value, though it could benefit from bullet points for readability. It is appropriately sized for the tool's complexity.

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 tool's complexity (nested attributes, bulk operation, feature-specific behavior) and lack of output schema, the description is remarkably complete. It covers prerequisites, defaults, allowed keys, error payloads, return value, and API endpoint, leaving minimal gaps for an agent.

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 already covers 100% of parameters with basic descriptions, but the tool description adds significant meaning: attributes constraint for cost types, partial-update semantics, company_id default, and segment_id resolution requirement. This goes beyond the schema, though not exhaustive.

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 the tool's purpose: 'Update All Segment Items with the same attributes.' It further specifies the scope (company-level, segment items and their children) and distinguishes from single-item update tools by emphasizing bulk updates. The name and context differentiate it from project-scoped alternatives.

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 clear context for when to use the tool: bulk status changes, cost type deactivation, and prerequisites like resolving segment_id via the matching list tool. It also states constraints (e.g., attributes must contain only status for cost types) and error conditions, though it does not explicitly name alternative tools.

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