Skip to main content
Glama
TylerIlunga

Procore MCP Server

Bulk Delete Attachments

bulk_delete_attachments_company
DestructiveIdempotent

Delete multiple attachments from an asset in a single API call. Provide company_id and asset_id, then specify attachment IDs or use select_all to permanently remove them.

Instructions

Deletes multiple attachments in a single request. Confirm the target id with the matching show or list tool before calling. company_id defaults to the value set by procore_set_config when omitted, and asset_id must identify an existing parent record — resolve it with the matching list tool first. Permanently removes the attachment. 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, asset_id. Procore API (v2.0): Core > Assets. Endpoint: DELETE /rest/v2.0/companies/{company_id}/assets/{asset_id}/attachments/bulk_delete

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
asset_idYesURL path parameter — unique identifier for the Asset
company_idYesURL path parameter — unique identifier for the company.
select_allNoJSON request body field — when true, deletes all attachments for the asset. Use excluded_attachment_ids to specify exceptions. When false (default), attachment_ids must be provided.
attachment_idsNoJSON request body field — list of attachment IDs to delete. Required when select_all is false.
Accept-LanguageNoJSON request body field — locale for localized response messages (for example: en, fr-FR, pseudo)
excluded_attachment_idsNoJSON request body field — list of attachment IDs to exclude from deletion. Only applicable when select_all is true.
Behavior5/5

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

The description richly supplements the annotations by disclosing that deletion is permanent, cannot be undone, and that a repeat call returns 404. It also explains error payload behavior with common HTTP statuses (401, 403, 404) and the company_id default from configuration. These insights go well beyond the destructiveHint and idempotentHint annotations.

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 a single dense paragraph with no fluff. Every sentence contributes essential information: action, preconditions, default behavior, permanence, error handling, required params, and API reference. It is efficiently structured and front-loaded with the core purpose.

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?

For a destructive bulk delete operation with no output schema, the description covers critical aspects: prerequisites, irreversibility, idempotency (repeat 404), failure modes with HTTP statuses, and defaults. It provides sufficient context for an agent to safely invoke the tool and interpret failures, making it strongly 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%, so the baseline is 3. The description adds meaningful parameter context: company_id defaults to the configured value when omitted, and asset_id must reference an existing parent record. This goes beyond the schema's field descriptions, justifying a 4.

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 'Deletes multiple attachments in a single request,' which clearly identifies the verb, resource, and bulk scope. This distinguishes it from single-attachment delete tools (e.g., delete_attachment_company) and project-scoped bulk delete variants (bulk_delete_attachments_project). The endpoint details further reinforce the exact operation.

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 actionable usage guidance: 'Confirm the target id with the matching show or list tool before calling' and 'asset_id must identify an existing parent record.' It also documents the default behavior of company_id from procore_set_config. However, it does not explicitly name alternative tools or state when not to use this tool, so it falls short of a perfect 5.

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