Skip to main content
Glama
TylerIlunga

Procore MCP Server

Sync Direct Cost Line Items

sync_direct_cost_line_items
Idempotent

Batch create or update direct cost line items for a project. Send only changed fields to sync line items while preserving existing values.

Instructions

This endpoint creates or updates a batch of Direct Cost Line Items. For this endpoint either wbs_code_id or cost_code_id and line_item_type_id are required when creating a line item. If both wbs_code_id and cost_code_id are provided, the endpoint will use wbs_code_id. This action does not support concurrent requests. If there is an attempt to update or create a Direct Cost Line Item that belongs to a Direct Cost which is being updated or deleted by another request, a 409 Conflict error will be returned. See Using Sync Actions for additional information. Send only the fields you intend to change; omitted fields keep their current values. project_id defaults to the value set by procore_set_config when omitted. Returns the modified direct cost 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: project_id, updates. Procore API: Construction Financials > Project Level Direct Costs. Endpoint: PATCH /rest/v1.0/projects/{project_id}/direct_costs/line_items/sync

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
updatesYesJSON request body field — the updates for this Project Level Direct Costs operation
project_idYesURL path parameter — unique identifier for the project.
Behavior5/5

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

The description goes well beyond the annotations by disclosing concurrency limitations (no concurrent requests, 409 Conflict), partial update semantics (omitted fields keep current values), default project_id behavior, and specific error statuses (401, 403, 404). It also mentions the return value. This adds substantial behavioral context not available in structured metadata.

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 long but every sentence carries useful information—batching, required fields, concurrency, partial updates, defaults, returns, and errors. It is front-loaded with the core purpose. Slight redundancy (e.g., 'This endpoint', 'Procore API' details) prevents a perfect score, but it remains efficient for a complex operation.

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 (batch sync, multiple constraints, error cases) and the absence of an output schema, the description is remarkably complete. It covers invocation semantics, field requirements, concurrency behavior, update semantics, default configuration, success/failure responses, and links to further documentation. There are no significant gaps for an agent to invoke it correctly.

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% but the updates parameter description is generic ('JSON request body field'). The description compensates by explaining required fields for creating a line item (wbs_code_id or cost_code_id + line_item_type_id), the precedence rule when both are provided, and the project_id default. This adds meaningful semantics beyond the schema fields.

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 states a specific action: 'creates or updates a batch of Direct Cost Line Items.' It clearly identifies the resource (Direct Cost Line Items) and the batch operation, distinguishing it from sibling tools like create_direct_cost_line_item or sync_direct_cost_items by specifying 'batch' and the endpoint path. The required fields for creation further clarify its scope.

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 provides clear context for when to use this tool: for batch create/update of direct cost line items, with details on required fields, precedence rules, partial updates, and project_id default. However, it does not explicitly contrast with alternatives (e.g., single-item create/update tools) or state when not to use it, so it stops short of a 5.

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