Skip to main content
Glama
TylerIlunga

Procore MCP Server

Create Company Segment Item

create_company_segment_item

Create a new segment item in Procore for a given company and segment, providing code and name. Returns the created record with its new ID.

Instructions

Creates a new company segment item for the specified Procore company. 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. Creates the company segment item and returns it with its new id (HTTP 201); calling it again creates another record. 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, code, name. Procore API: Construction Financials > Work Breakdown Structure. Endpoint: POST /rest/v1.0/companies/{company_id}/work_breakdown_structure/segments/{segment_id}/segment_items

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesJSON request body field — segment Item Code
nameYesJSON request body field — segment Item Name
parent_idNoJSON request body field — unique identifier of the parent
company_idYesURL path parameter — unique identifier for the company.
segment_idYesURL path parameter — unique identifier of the segment
default_uom_idNoJSON request body field — iD of the Unit of Measure to set as the default for this Cost type (line item type) segment item. Pass null to remove the existing default. Part of the Units of Measure Validation beta.
segment_item_list_idNoJSON request body field — segment Item List ID
Behavior5/5

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

Annotations already convey readOnlyHint=false and idempotentHint=false. The description adds substantial behavioral context: non-idempotency ('calling it again creates another record'), default company_id behavior, HTTP 201 response with new id, and detailed error semantics (401, 403, 404). This far exceeds the annotations and gives the agent a clear picture of side effects and failure modes.

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 longer than average but every sentence provides distinct value: purpose, defaults, prerequisites, behavior, error codes, required params, and API reference. It is well-organized and front-loaded with the primary purpose. Slightly verbose but justified given the 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?

For a create tool with no output schema, the description covers return value (new id, HTTP 201), non-idempotent creation, common error codes, required vs optional parameters, and the exact API endpoint. It is self-contained and enables an agent to invoke the tool correctly without external documentation.

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% with descriptions for all 7 parameters. The description adds value beyond the schema by highlighting required parameters (company_id, segment_id, code, name), explaining company_id's default from procore_set_config, and emphasizing segment_id must resolve to an existing parent. This context is not present in the schema.

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 'Creates a new company segment item' with a specific resource and scope (company-level). It distinguishes from project-level counterparts by specifying 'company segment item' and 'Procore company'. The verb+resource is precise and unambiguous.

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 prerequisite guidance: 'segment_id must identify an existing parent record — resolve it with the matching list tool first.' Also explains company_id defaults to procore_set_config. It doesn't explicitly name alternative tools, but the context implies when to use this over project segment item tools. Lacks explicit 'when not to use' but gives sufficient situational context.

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