Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update Company Pattern'S Segment Order

update_company_patterns_segment_order
Idempotent

Updates the segment order for a company pattern in Procore's Work Breakdown Structure, sending only changed fields and returning the updated order or an error status.

Instructions

Updates the segment order on a company pattern. 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. Returns the modified company pattern s segment order 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, updated_order. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: PUT /rest/v1.0/companies/{company_id}/work_breakdown_structure/patterns/update_segment_order

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_idYesURL path parameter — unique identifier for the company.
updated_orderYesJSON request body field — new position for each segment in the pattern
Behavior5/5

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

The description adds substantial behavior beyond annotations: it states that omitted fields keep current values, describes the success return value ('Returns the modified company pattern's segment order on success'), and enumerates common error codes (401, 403, 404). This enriches the agent's understanding of side effects and failure modes beyond the `readOnlyHint`, `idempotentHint`, and `destructiveHint` flags.

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?

Every sentence contributes meaningful information: the update action, partial-update semantics, default company_id, success/failure behavior, required parameters, and API endpoint. The structure front-loads the core purpose and follows with operational details, with no redundant content.

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?

For a tool with only two parameters, no output schema, and existing annotations, the description fully covers purpose, usage, defaults, error handling, and endpoint. It gives the agent everything needed to correctly select and invoke the tool.

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 already provides descriptions for both parameters (company_id as URL path parameter, updated_order as JSON body array), so the baseline is high. The description adds the default behavior for `company_id` and explicitly lists required parameters. However, the statement about omitted fields keeping current values is slightly confusing given that both parameters are required, which prevents a perfect score.

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 opens with a specific verb and resource: 'Updates the segment order on a company pattern.' It clearly identifies the company-level scope, which distinguishes it from the project-level sibling tool `update_project_patterns_segment_order` that appears 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 Guidelines4/5

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

Provides clear guidance on partial updates ('Send only the fields you intend to change; omitted fields keep their current values') and the default behavior for `company_id` (falls back to `procore_set_config`). It does not explicitly contrast with the project-level alternative, but the context is sufficient for an agent to know when to use it.

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