Skip to main content
Glama
TylerIlunga

Procore MCP Server

Delete Context By Query Parameters

delete_context_by_query_parameters
DestructiveIdempotent

Permanently delete a document markup context and all its associated layers, groups, and markups from a Procore project using company and project IDs.

Instructions

Delete a context and all its associated layers, groups, and markups. For PIN deletion: pass sub_context_type and sub_context_type_id. context_type and context_type_id are optional (for additional specificity). Pass skip_resource_deletion=true when the caller has already deleted external resources. Use this to permanently delete the specified Document Markup records. This cannot be undone. Permanently removes the specified Document Markup records. This action cannot be undone. Required parameters: company_id, project_id. Procore API: Project Management > Document Markup. Endpoint: DELETE /rest/v1.0/companies/{company_id}/projects/{project_id}/contexts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
company_idYesURL path parameter — unique identifier for the Procore company
project_idYesURL path parameter — unique identifier for the Procore project
context_typeNoQuery string parameter — the context type for this Document Markup operation
context_type_idNoQuery string parameter — unique identifier of the context type
sub_context_typeNoQuery string parameter — the sub context type for this Document Markup operation
sub_context_type_idNoQuery string parameter — unique identifier of the sub context type
skip_resource_deletionNoQuery string parameter — skip_resource_deletion
Behavior5/5

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

The description adds significant behavioral context beyond annotations: it explains that deletion is permanent, removes associated layers/groups/markups, and mentions the API endpoint. Annotations provide destructiveHint=true, but the description reinforces and details the scope.

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

Conciseness3/5

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

The description contains redundancy (e.g., 'This cannot be undone' appears twice, 'Permanently removes the specified Document Markup records' is repeated). While front-loaded with the main purpose, it could be more concise.

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?

The description fully covers the tool's behavior, required parameters, optional parameters for special cases, and provides the API endpoint. No output schema, so return values are not needed. It is complete for an agent to select and invoke the tool.

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

Parameters5/5

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

The description adds meaning beyond the input schema by grouping parameters for specific use cases (PIN deletion) and explaining the purpose of optional vs required parameters. Schema coverage is 100%, so baseline is 3, but the description provides extra guidance on when to use each parameter.

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 clearly states what the tool does: 'Delete a context and all its associated layers, groups, and markups.' It specifies the resource and action, and distinguishes from siblings by mentioning specific parameter usage for PIN deletion and optional parameters.

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 guidance on when to use specific parameters (e.g., for PIN deletion, pass sub_context_type and sub_context_type_id) and when to use skip_resource_deletion. However, it does not explicitly say when not to use this tool or mention alternative tools like delete_context_by_id.

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