Skip to main content
Glama
TylerIlunga

Procore MCP Server

Delete Context By ID

delete_context_by_id
DestructiveIdempotent

Permanently delete a context and all its associated layers, groups, and markups using the context ID. Confirm the target ID with the matching show or list tool before calling.

Instructions

Delete a context and all its associated layers, groups, and markups using context ID. Confirm the target id with the matching show or list tool before calling. 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. Permanently removes the context. This cannot be undone, and a repeat call returns 404. 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: DELETE /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
skip_resource_deletionNoQuery string parameter — when true, skip deletion of associated resources (markups)
Behavior5/5

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

Even with annotations already marking destructiveHint=true, the description adds essential behavioral context: 'Permanently removes the context. This cannot be undone, and a repeat call returns 404.' It also discloses error payload patterns (401, 403, 404) and the config default behavior, which annotations do not cover.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence earns its place: core action, prerequisite verification, data-scoping defaults, permanence/irreversibility, error behavior, required parameters, and endpoint reference. It is front-loaded with the primary purpose and avoids redundant filler.

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

Completeness4/5

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

With no output schema, the description should explain the successful return behavior, but it only details failure payloads and the 404 on repeat calls. It also omits a direct explanation of skip_resource_deletion in the body text, though the schema covers it. Otherwise, it thoroughly covers prerequisites, defaults, and destructive consequences.

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 value by explaining that company_id and project_id default to procore_set_config values when omitted, which is not in the schema. However, it does not elaborate on skip_resource_deletion beyond the schema's minimal description.

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 opens with 'Delete a context and all its associated layers, groups, and markups using context ID,' which clearly states the action, resource, and scope. It distinguishes itself from siblings like delete_context_by_query_parameters by specifying the ID-based deletion and the full cascade behavior.

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 prerequisites: 'Confirm the target id with the matching show or list tool before calling' and 'resolve it with the matching list tool first.' It also notes the default behavior for company_id/project_id from procore_set_config, but does not explicitly mention alternatives or when not to use the tool.

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