Skip to main content
Glama
TylerIlunga

Procore MCP Server

Get Complete Layer Structure

get_complete_layer_structure

Get or create the complete context-layer-group hierarchy for a Procore project via Document Markup API. Uses context type and ID, returns Procore's response or error status.

Instructions

Retrieve or create the complete hierarchy (contexts -> layers -> groups) by context type. company_id and project_id default to the values set by procore_set_config when omitted. Acts on the complete layer structure and returns Procore's response for the operation. 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, project_id, context_type, context_type_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/projects/{project_id}/layer_structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_idYesURL path parameter — unique identifier of the company
project_idYesURL path parameter — unique identifier of the project
context_typeYesJSON request body field — the context type for this Document Markup operation
include_groupsNoJSON request body field — the include groups for this Document Markup operation
context_type_idYesJSON request body field — unique identifier of the context type
sub_context_typeNoJSON request body field — the sub context type for this Document Markup operation
sub_context_type_idNoJSON request body field — unique identifier of the sub context type
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations: it discloses the retrieve-or-create behavior, the defaults for company_id/project_id from procore_set_config, and the common HTTP error statuses (401, 403, 404). The annotations already indicate readOnly=false and destructive=false, and the description is consistent with these flags, adding error handling and operational details.

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 compact and front-loaded with the primary action. Each sentence contributes useful information (defaults, error behavior, required params, endpoint), though the 'Required parameters' list repeats schema information and the phrase 'Acts on the complete layer structure and returns Procore's response' is somewhat redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 7 parameters and no output schema, the description covers key operational details like defaults and errors, but leaves significant gaps: it does not explain when creation occurs versus retrieval, nor the meaning of include_groups and sub_context_type fields. The absence of output schema information also limits the agent's ability to anticipate the response shape, though the description does state it returns Procore's raw response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with generic descriptions for each parameter. The description adds value by explaining that company_id/project_id default to procore_set_config values and by framing context_type in the hierarchy (contexts -> layers -> groups). However, it does not clarify the roles of include_groups, sub_context_type, or sub_context_type_id beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Retrieve or create the complete hierarchy (contexts -> layers -> groups) by context type') and distinguishes it from sibling tools like get_layers, get_groups, and get_contexts by targeting the complete hierarchy. However, the dual 'Retrieve or create' behavior is ambiguous and the tool name (get_complete_layer_structure) implies a read-only operation, creating some confusion.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives such as get_layers, get_groups, or get_or_create_context_with_hierarchy. It mentions default values for company_id/project_id and lists required parameters, but does not explain the decision context for choosing this tool over more specific sibling 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