Skip to main content
Glama
Procore MCP Server

Procore MCP Server

Execute Any Procore API Call

procore_call_api
Destructive

Executes any Procore REST API call, including reads and writes, using saved OAuth tokens and endpoint details to reach endpoints without dedicated tools.

Instructions

Executes any Procore REST API call. This is the only tool here that reaches Procore and the only one that can change data — resolve the exact method, path, and parameters with procore_get_endpoint_details first. WRITES ARE REAL: DELETE permanently removes the record, POST creates one, and PATCH/PUT overwrite fields, so confirm the target id before calling and prefer a GET to verify it exists. Handles OAuth from the saved tokens, substitutes {placeholders} from path_params, and rewrites double underscores in query keys into brackets (filters__status becomes filters[status]). company_id and project_id fall back to whatever procore_set_config holds when the path needs them and you omit them. Returns the parsed JSON response together with pagination and rate-limit metadata. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, 404 when an id does not resolve, 422 when the body fails validation, and 429 when the rate limit is exhausted. Step 4 of the workflow; this reaches every Procore endpoint, including any not exposed as a dedicated tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "procore_call_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body for POST/PUT/PATCH. Use the exact field names and nesting from procore_get_endpoint_details; ignored on GET and DELETE.
pageNo1-indexed page number for paginated endpoints (default 1)
pathYesAPI path with placeholders left intact, e.g. '/rest/v1.0/projects/{project_id}/rfis'. Supply the values via path_params rather than interpolating them here.
methodYesHTTP method for the endpoint, exactly as reported by the discovery tools
per_pageNoItems per page, 1-100 (default 100)
company_idNoOverrides the Procore-Company-Id header for this call only; defaults to the configured company
path_paramsNoValues substituted into the path's {placeholders}, e.g. { project_id: '12345' }. Required whenever the path contains a placeholder that procore_set_config does not already supply.
query_paramsNoQuery-string parameters. Use double underscores for Procore's bracket syntax: filters__status becomes filters[status].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false; the description goes well beyond them by spelling out per-method consequences (DELETE permanently removes, POST creates, PATCH/PUT overwrite), OAuth token handling, placeholder substitution, query-key rewriting, config fallback for company_id/project_id, and returned pagination/rate-limit metadata. It even enumerates failure modes with HTTP statuses (401/403/404/422/429).

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 critical warning ("WRITES ARE REAL") is front-loaded right after the purpose line, and the sentences are dense with actionable content rather than filler. It runs long and the error-code enumeration is somewhat listy, but nearly every clause carries information an agent needs before invoking an arbitrary-endpoint tool.

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 generic passthrough tool with no output schema, the description covers what is needed: how auth and config defaults resolve, how paths/query params are transformed, what the response contains (parsed JSON plus pagination and rate-limit metadata), and how errors surface. Nothing essential for a correct call is left implicit.

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 all eight parameters; the description adds operational meaning by explaining the config fallback for company_id/project_id and the {placeholder} substitution workflow via path_params. The double-underscore-to-bracket rewriting is restated from the schema rather than newly added, keeping this just short of a 5.

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?

States a specific verb and resource ("Executes any Procore REST API call") and immediately differentiates it from siblings: "the only tool here that reaches Procore and the only one that can change data." An agent can tell it apart from the discovery/config tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite ("resolve the exact method, path, and parameters with procore_get_endpoint_details first"), an explicit safe-path preference ("prefer a GET to verify it exists"), and workflow position ("Step 4 of the workflow"). It also names when to reach for it over dedicated tools ("including any not exposed as a dedicated tool").

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.