Skip to main content
Glama
TylerIlunga

Procore MCP Server

Create Witness Statement

create_witness_statement

Create a witness statement for an incident in a Procore project, using incident and witness IDs. The new record is returned with its ID.

Instructions

Creates a new witness statement in the specified Procore project. Pass the record's fields as top-level arguments — they are nested under "witness_statement" in the request payload for you. project_id defaults to the value set by procore_set_config when omitted. Creates the witness statement and returns it with its new id (HTTP 201); calling it again creates another record. 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, incident_id, witness_id. Procore API: Project Management > Incidents. Endpoint: POST /rest/v1.0/projects/{project_id}/incidents/witness_statements

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
form_idsNoJSON request body field — forms to attach to the response
image_idsNoJSON request body field — images to attach to the response
recordingNoJSON request body field — the recording for this Incidents operation
statementNoJSON request body field — the account of the event by the witness in rich text form.
project_idYesURL path parameter — unique identifier for the project.
witness_idYesJSON request body field — unique identifier of the witness
incident_idYesJSON request body field — the ID of the Incident
upload_uuidsNoJSON request body field — array of uploaded file UUIDs.
date_receivedNoJSON request body field — date that the Witness Statement was received. This assumes the dates provided are in the project timezone.
file_version_idsNoJSON request body field — file Versions to attach to the response
drawing_revision_idsNoJSON request body field — drawing Revisions to attach to the response
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 beyond annotations by explaining that fields are flattened as top-level arguments (nested under 'witness_statement' internally), project_id defaults from procore_set_config, and the API returns HTTP 201 with the new id. It explicitly warns that repeated calls create duplicate records, matching idempotentHint=false. Error behavior is disclosed (401/403/404). No contradiction with 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, well-structured paragraph that front-loads the core purpose and then adds essential operational details. Every sentence provides value: payload flattening, default project_id, response/idempotency, error codes, required params, and API endpoint. No filler or redundancy.

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 create operation with 12 parameters and no output schema, the description covers all critical aspects: purpose, required parameters, request payload shape, response status, idempotency behavior, error modes, and the actual API endpoint. It also references the Procore tool area (Project Management > Incidents). No significant gaps.

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 schema already documents each parameter. The description adds crucial semantic framing: fields are passed as top-level arguments (no wrapping needed), and project_id defaults when omitted. It also highlights required parameters. This exceeds the baseline for high schema coverage.

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+resource+scope: 'Creates a new witness statement in the specified Procore project.' It clearly distinguishes from sibling tools like list_witness_statements, show_witness_statement, update_witness_statement, and destroy_witness_statement by emphasizing creation. No ambiguity.

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 clearly implies this tool is for creating witness statements, and notes that calling it again creates another record, signaling non-idempotent use. It does not explicitly name alternatives (e.g., 'use update_witness_statement to modify'), but the scope is unambiguous. It also provides guidance on required parameters and project_id defaulting, which helps the agent decide when and how to invoke it.

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