Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update Near Miss

update_near_miss
Idempotent

Update a near miss incident record in Procore by modifying its attributes. Send only the fields you want to change; omitted fields remain unchanged.

Instructions

Update a Near Miss' attributes. Send only the fields you intend to change; omitted fields keep their current values. Pass the record's fields as top-level arguments — they are nested under "near_miss" in the request payload for you. 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. Returns the modified near miss on success. 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: PATCH /rest/v1.0/projects/{project_id}/incidents/near_misses/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — unique identifier of the Incidents resource
project_idYesURL path parameter — unique identifier for the project.
descriptionNoJSON request body field — description of event in Rich Text format
incident_idNoQuery string parameter — unique identifier of the incident
harm_source_idNoJSON request body field — the ID of the Harm Source
work_activity_idNoJSON request body field — the ID of the Work Activity
affected_party_idNoJSON request body field — the ID of the Affected Person. This supports full and reference Users from the People endpoints.
affected_person_idNoJSON request body field — the ID of the Affected Person. This only supports full Users from the Users endpoints.
affected_company_idNoJSON request body field — the ID of the Affected Company
managed_equipment_idNoJSON request body field — the ID of the Managed Equipment
custom_field_%{custom_field_definition_id}NoJSON request body field — value of the custom field. The data type of the value passed in corresponds with the data_type of the Custom Field Definition. For a lov_entry data_type the value passed in should be the ID of one ...
Behavior5/5

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

The description goes far beyond the annotations by disclosing partial-update semantics (only changed fields), payload wrapping (fields nested under near_miss), default project_id behavior, return value, and common error statuses (401, 403, 404). This is rich behavioral context that helps the agent anticipate outcomes.

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 well-structured and front-loaded, with the first sentence stating the core action. Every subsequent sentence adds distinct value: partial update, payload handling, defaults, id resolution, return, error handling, and endpoint reference. No fluff or repetition.

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?

Given the tool's complexity (11 parameters, PATCH semantics, error cases) and the absence of an output schema, the description covers all essential aspects: how to invoke, what to send, what to expect, and how to handle failures. It also references the API section and endpoint, making it self-contained.

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 baseline is 3. The description adds significant meaning: fields are passed as top-level arguments but nested in the payload automatically, omitted fields retain current values, project_id falls back to a config value, and id must reference an existing record. This clarifies how to use the parameters beyond the schema.

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 a specific verb and resource: 'Update a Near Miss' attributes.' It clearly distinguishes this from sibling tools like create_near_miss or destroy_near_miss by focusing on updating existing records, and it reinforces the scope with the endpoint and API section.

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?

It provides explicit guidance: 'id must identify an existing parent record — resolve it with the matching list tool first.' This tells the agent when to use this tool (after listing to get a valid id) and implies it is for updating existing records. It does not explicitly name alternative tools for creation or deletion, but the context is strong.

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