Skip to main content
Glama
TylerIlunga

Procore MCP Server

List Hazards

list_hazards
Read-onlyIdempotent

Get a paginated list of hazards for a company. Use it to look up hazard IDs or discover hazard categories for incidents, optionally including inactive hazards.

Instructions

Returns a paginated list of hazards for the specified company. By default, only active hazards are returned; pass all=true to include inactive ones. Hazards categorize the type of danger associated with an incident. Use this to discover hazards or to look up the id of one before calling a tool that needs it. company_id defaults to the value set by procore_set_config when omitted. Returns a JSON array of hazards; 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: company_id. Procore API: Project Management > Incidents. Endpoint: GET /rest/v1.0/companies/{company_id}/hazards

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoQuery string parameter — when true, returns both active and inactive hazards. When omitted or false, only active hazards are returned.
pageNoQuery string parameter — page number for paginated results (default: 1)
sortNoQuery string parameter — sort direction. Use the value to sort ascending, or prefix with a hyphen (e.g. -name) to sort descending.
per_pageNoQuery string parameter — number of items per page (default: 100, max: 100)
company_idYesURL path parameter — unique identifier for the company.
filters__idNoQuery string parameter — return item(s) with the specified IDs.
filters__activeNoQuery string parameter — if true, returns item(s) with a status of 'active'.
filters__updated_atNoQuery string parameter — return item(s) last updated 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 `YYY...
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description adds valuable context: pagination controls, response format (JSON array, pages remaining), default company_id behavior, and typical error status codes (401, 403, 404). This thoroughly discloses behavior.

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 moderately long but every sentence provides useful information: purpose, defaults, use case, response format, read-only assurance, error handling, and endpoint. It is front-loaded with the main action and avoids fluff, though slightly dense.

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 8-parameter schema and no output schema, the description is complete. It covers purpose, default behavior, pagination, response details, error scenarios, required parameters, and API endpoint. No critical information is missing for an agent to 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?

Schema coverage is 100%, so baseline is 3. The description adds meaningful details beyond the schema: the all parameter includes inactive hazards, page/per_page control pagination, and company_id can be omitted to use a configured value. This clarifies the parameters' practical usage.

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 hazards for a company, defines what hazards are, and explains its use for discovery and ID lookup. This distinguishes it from sibling tools like show_hazard and create_hazard.

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 context: use for discovering hazards or looking up an ID before calling another tool. It also explains default behavior (active only) and company_id fallback. However, it does not explicitly mention when not to use it or name alternative tools.

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