Skip to main content
Glama
TylerIlunga

Procore MCP Server

List Recycled Near Misses

list_recycled_near_misses
Read-onlyIdempotent

List soft-deleted near miss records in a project's recycle bin to find and restore them. Supports filtering by incident and other criteria, with pagination.

Instructions

Returns a paginated list of soft-deleted near miss records in the project's recycle bin, optionally scoped to a single incident via incident_id. Supports the same filtering and sorting options as the main near misses list. Recycled near misses can be restored via the restore endpoint. Use this to discover recycled near misses or to look up the id of one before calling a tool that needs it. project_id defaults to the value set by procore_set_config when omitted. Returns a JSON array of recycled near misses; page and per_page control pagination and the response reports how many pages remain. 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: project_id. Procore API: Project Management > Incidents. Endpoint: GET /rest/v1.0/projects/{project_id}/recycle_bin/incidents/near_misses

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoQuery string parameter — page number for paginated results (default: 1)
sortNoQuery string parameter — sort order for results. Prefix with '-' for descending order
per_pageNoQuery string parameter — number of items per page (default: 100, max: 100)
project_idYesURL path parameter — unique identifier for the project.
incident_idNoQuery string parameter — optional incident ID to scope results. When provided, returns only near miss records belonging to the specified incident. Omit to retrieve near misses across all incidents in the project.
filters__queryNoQuery string parameter — full-text search across near miss description and related fields. Returns near misses where any searchable field contains the query string.
filters__created_atNoQuery string parameter — return item(s) created within the specified ISO 8601 datetime range. Formats: `YYYY-MM-DD`...`YYYY-MM-DD` - Date `YYYY-MM-DDTHH:MM:SSZ`...`YYYY-MM-DDTHH:MM:SSZ` - DateTime with UTC Offset `YYYY-MM-...
filters__harm_source_idNoQuery string parameter — array of Harm Source IDs. Returns item(s) with the specified Harm Source IDs.
filters__work_activity_idNoQuery string parameter — array of Work Activity IDs. Returns item(s) with the specified Work Activity IDs.
filters__affected_party_idNoQuery string parameter — array of Affected Party IDs. Returns item(s) with the specified Affected Party IDs.
filters__affected_person_idNoQuery string parameter — array of Person IDs. Returns item(s) with the specified affected Person IDs.
filters__affected_company_idNoQuery string parameter — array of Company IDs. Returns item(s) with the specified affected Company IDs.
filters__managed_equipment_idNoQuery string parameter — return item(s) with the specified Managed Equipment ID.
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds valuable behavioral context beyond that: it explains the pagination behavior ('page and per_page control pagination and the response reports how many pages remain'), and details failure modes including specific HTTP statuses (401, 403, 404) and their likely causes. This goes well beyond the annotations.

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 dense but well-structured, front-loading the core purpose and adding supporting details. Every sentence contributes useful information, though the final 'Required parameters: project_id' sentence is slightly redundant since the schema already marks it required. Minor redundancy reduces the score from 5.

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 13-parameter list tool with no output schema, the description covers the return type ('JSON array'), pagination semantics, error handling with common status codes, the config default for project_id, and the endpoint path. It also mentions restoration via the restore endpoint. This is exceptionally complete for understanding the tool's behavior and response.

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?

All 13 parameters have schema descriptions (100% coverage), but the tool description adds crucial semantics not present in the schema. It explains that incident_id scopes results to a single incident, that page/per_page control pagination, and that project_id defaults to the configured value when omitted. This significantly helps correct invocation.

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 the tool returns a paginated list of soft-deleted near miss records from the recycle bin. It explicitly distinguishes this from the active near misses list by mentioning 'soft-deleted' and 'recycle bin', and notes it can be scoped via incident_id. This is a specific verb+resource+scope that stands apart from sibling tools like list_near_misses.

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 a clear use case: 'Use this to discover recycled near misses or to look up the id of one before calling a tool that needs it.' It also references the restore endpoint and notes that project_id defaults to a configured value. However, it does not explicitly state when not to use it (e.g., for active records, use list_near_misses), though this is strongly implied.

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