Skip to main content
Glama
TylerIlunga

Procore MCP Server

Get Context By ID

get_context_by_id
Read-onlyIdempotent

Retrieve a full context record by its ID using company, project, and context IDs. Read-only operation returns the complete field set for a known context.

Instructions

Retrieve a specific context by its internal ID. Use this when you already know which context you want and need its full field set. company_id and project_id default to the values set by procore_set_config when omitted, and context_id must identify an existing parent record — resolve it with the matching list tool first. Returns a single JSON object describing the context. Read-only — it changes nothing in Procore. 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_id. Procore API (v2.0): Project Management > Document Markup. Endpoint: GET /rest/v2.0/companies/{company_id}/projects/{project_id}/contexts/{context_id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_idYesURL path parameter — unique identifier of the company
context_idYesURL path parameter — unique identifier of the context
project_idYesURL path parameter — unique identifier of the project
Behavior5/5

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

Beyond the annotations, the description explicitly states the tool is read-only and changes nothing, and it details failure modes with common HTTP statuses (401, 403, 404). It also clarifies the defaulting of company_id/project_id, adding meaningful behavioral context that annotations alone do not provide.

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 dense paragraph covering purpose, usage, defaults, return, side effects, errors, and endpoint. It is longer than strictly necessary but every sentence carries relevant information, with only minor redundancy (e.g., repeating required parameters already in the schema).

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?

Despite having no output schema, the description explains the return type ('single JSON object'), notes the read-only nature, describes common error outcomes, and provides the API version, category, and full endpoint. It also gives a prerequisite (resolve context_id with a list tool), making the tool self-contained enough for an agent to use 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% with basic descriptions, and the description adds important semantics: company_id and project_id default to procore_set_config values when omitted, and context_id must reference an existing parent record resolved via a list tool. This goes beyond the schema's minimal 'URL path parameter' descriptions.

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 clearly states the tool retrieves a specific context by its internal ID and returns its full field set. It does not explicitly name sibling tools, but the 'when you already know which context you want' phrasing implicitly differentiates it from list tools.

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 explicit guidance on when to use the tool ('already know which context you want and need its full field set') and instructs resolving context_id with a list tool first. It also explains the defaulting behavior for company_id and project_id via procore_set_config, which is useful context for invocation.

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