Skip to main content
Glama
TylerIlunga

Procore MCP Server

Update Hazard

update_hazard
Idempotent

Update an existing hazard's details, such as its name or active status. Specify only the fields to change; Procore-provided hazard names remain fixed. Requires company ID and hazard ID.

Instructions

Updates the specified hazard. Procore-provided hazard names cannot be changed. 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 "hazard" in the request payload for you. company_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 hazard 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: company_id, id. Procore API: Project Management > Incidents. Endpoint: PATCH /rest/v1.0/companies/{company_id}/hazards/{id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesURL path parameter — unique identifier of the hazard. Use the id from the List Hazards response.
nameNoJSON request body field — display name of the hazard. Must be unique within the company. Cannot be changed for Procore-provided hazards.
activeNoJSON request body field — whether the hazard is available for selection when recording incidents.
company_idYesURL path parameter — unique identifier for the company.
Behavior5/5

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

Beyond the annotations, the description discloses several behavioral traits: partial update behavior ('omitted fields keep their current values'), defaulting of company_id from procore_set_config, the fact that fields are passed as top-level arguments despite being nested in the request payload, return value on success, and specific error statuses (401, 403, 404). This significantly exceeds what the annotations alone provide and contains no contradictions.

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 front-loaded with the core purpose and then covers constraints, usage, defaults, errors, and endpoint information in a logical order. Every sentence adds valuable information without redundancy or fluff. Though somewhat long, it is dense with purpose, making it appropriately sized for a tool with multiple behavioral nuances.

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 (4 parameters, no output schema), the description covers all essential aspects: purpose, required parameters, parameter defaulting, id resolution, update semantics, success return, error handling, API area, and endpoint. There is no output schema to describe return details beyond what is stated ('Returns the modified hazard on success'). The description is complete for an agent to select and invoke the tool correctly.

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?

The input schema already contains detailed descriptions for all four parameters, so the baseline is 3. The description adds meaningful context: company_id defaults to the configured company when omitted, id must be resolved via the list tool, and fields are sent as top-level arguments which get nested under 'hazard' in the payload. This goes beyond the schema's static parameter definitions, 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 'Updates the specified hazard,' using a specific verb and resource. It clearly distinguishes the tool from siblings like create_hazard, delete_hazard, and list_hazards by focusing on updating an existing single hazard. Additional constraints like 'Procore-provided hazard names cannot be changed' further clarify the tool's exact scope.

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 clear guidance on when to use the tool: to update an existing hazard, and instructs to resolve the id with 'the matching list tool first.' It also explains partial update semantics ('Send only the fields you intend to change'). However, it does not explicitly contrast with alternatives like create_hazard for new records or bulk_update_hazards for multiple changes, so it stops short of fully mapping the sibling landscape.

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