Skip to main content
Glama
TylerIlunga

Procore MCP Server

Get Company-Level Layer Structure

get_company_level_layer_structure

Retrieve or create the complete hierarchy of contexts, layers, and groups for a company-level document in Procore.

Instructions

Retrieve or create the complete hierarchy (contexts -> layers -> groups) for a company-level document. company_id defaults to the value set by procore_set_config when omitted. Acts on the company-level 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, context_type, context_type_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: POST /rest/v2.0/companies/{company_id}/layer_structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_idYesURL path parameter — unique identifier of the company
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?

Beyond annotations, the description discloses error handling ('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') and a default behavior for company_id. It also clarifies that it acts on the company-level layer structure and returns Procore's response, which is useful operational context.

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 a single, well-structured paragraph that front-loads the purpose and covers defaults, error handling, required parameters, and the API endpoint. Each sentence contributes unique information, though the density could be slightly reduced.

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?

The description covers purpose, defaults, error codes, and endpoint, but with no output schema it does not explain the success response structure. It also does not explicitly differentiate when to use this tool from the many related layer/group/context siblings. For a 6-parameter tool, this is adequate but leaves some gaps.

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%, so the baseline is 3. The description adds meaningful parameter context by noting company_id defaults to the procore_set_config value and listing required parameters. However, it does not elaborate on the meaning of context_type or sub_context_type beyond the schema's generic descriptions.

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: 'Retrieve or create the complete hierarchy (contexts -> layers -> groups) for a company-level document.' It clearly identifies the resource (company-level layer structure) and distinguishes from sibling tools by focusing on the complete hierarchy and the POST endpoint for layer_structure.

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

Usage Guidelines3/5

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

The description provides context such as company_id defaulting to the value set by procore_set_config and identifies required parameters, but it does not explicitly state when to use this tool versus related tools like get_company_level_layers or get_or_create_company_level_context_with_hierarchy. No exclusions or alternative recommendations are given.

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