Skip to main content
Glama
TylerIlunga

Procore MCP Server

Destroy Witness Statement

destroy_witness_statement
DestructiveIdempotent

Permanently deletes a specified witness statement from a Procore project. Confirm the ID with the list tool first, as this action cannot be undone.

Instructions

Sends the specified Witness Statement to the Recycle Bin. Confirm the target id with the matching show or list tool before calling. project_id defaults to the value set by procore_set_config when omitted, and id must identify an existing parent record — resolve it with the matching list tool first. Permanently removes the witness statement. 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: project_id, id. Procore API: Project Management > Incidents. Endpoint: DELETE /rest/v1.0/projects/{project_id}/incidents/witness_statements/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — witness Statement ID
project_idYesURL path parameter — unique identifier for the project.
incident_idNoQuery string parameter — unique identifier of the incident
Behavior3/5

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

The description discloses important behavioral traits: irreversibility, 404 on repeat, error payloads with common HTTP statuses, and project_id defaulting. However, it internally contradicts itself by saying 'Sends to the Recycle Bin' and then 'Permanently removes... cannot be undone', which could mislead an agent about recoverability. This inconsistency, while not contradicting annotations, reduces clarity.

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 is fairly detailed and front-loaded with the action, but includes some repetition (e.g., 'matching list tool' mentioned twice) and redundant elements like the full endpoint path. It is structured logically, but could be tightened without losing essential information.

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 destructive tool with no output schema, it covers error handling, idempotency behavior, and prerequisite steps, which is good. However, the Recycle Bin vs. permanent deletion ambiguity leaves incomplete information about whether the resource can be recovered, and it does not mention incident_id handling. Overall, adequate but not fully complete.

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%, but the description adds meaningful context beyond the schema: project_id defaults to the configured value, and id must identify an existing parent record resolved via list tool. It reinforces required parameters, which is helpful. The optional incident_id is not mentioned, but the description still adds value over schema alone.

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 a destructive action on a witness statement with 'Sends... to Recycle Bin' and 'Permanently removes'. The verb 'destroy' and resource 'witness statement' align with the tool name, and the endpoint details clarify the operation. However, the dual references to 'Recycle Bin' and 'Permanent removal' introduce slight ambiguity about the final state.

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 gives explicit preconditions: confirm the target id with show/list tools and resolve the id via list tool first. It also notes project_id defaults from procore_set_config, providing context on when to use. It does not explicitly name alternatives but references 'matching show or list tool' sufficiently for an agent to understand prerequisites.

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