Skip to main content
Glama
TylerIlunga

Procore MCP Server

List Departments

list_departments
Read-onlyIdempotent

List a company's departments to discover them or retrieve their IDs for other API calls. Supports pagination and is read-only.

Instructions

Return a list of Departments. Use this to discover departments or to look up the id of one before calling a tool that needs it. Returns a JSON array of departments; 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: Core > Directory. Endpoint: GET /rest/v1.0/departments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoQuery string parameter — page number for paginated results (default: 1)
per_pageNoQuery string parameter — number of items per page (default: 100, max: 100)
company_idYesQuery string parameter — unique identifier for the company.
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, destructiveHint), the description adds valuable behavioral context: it clarifies the read-only nature, describes pagination behavior and response reporting, and discloses failure modes including specific HTTP status codes (401, 403, 404) and their meanings. This goes well beyond what annotations provide.

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 concise and well-structured. It front-loads the core purpose, then covers use cases, output format, safety, error handling, required parameters, and API reference. Every sentence serves a purpose, and there is no redundant or filler content.

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 simplicity and the presence of strong annotations and complete schema coverage, the description is fully adequate. It specifies the return type (JSON array), pagination behavior, required parameter, and error semantics. Even without an output schema, the description provides enough context for correct invocation and result interpretation.

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 schema already describes all three parameters with 100% coverage, establishing a baseline of 3. The description adds useful context by noting that page and per_page control pagination and that the response reports how many pages remain. It also explicitly identifies company_id as required, reinforcing the parameter's role without adding syntax details.

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 clear verb+resource statement: 'Return a list of Departments.' It further clarifies the purpose by explaining the two primary use cases: discovery and ID lookup before calling dependent tools. This distinguishes it from sibling tools like create_department, update_department, and show_department.

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 gives explicit use-case guidance: 'Use this to discover departments or to look up the id of one before calling a tool that needs it.' This effectively communicates when to invoke this tool. However, it does not explicitly contrast with show_department or other alternative, so it misses the full when-not/alternatives specification.

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