Skip to main content
Glama
zackscriven

ghl-mcp-server-v2

by zackscriven

ghl_project_batch_tasks

Fetch multiple project tasks by ID in one call, with RBAC-filtered results that omit inaccessible tasks and exclude embedded subtasks.

Instructions

PROJECT MANAGEMENT API — hierarchy is spaces -> folders -> lists -> tasks (+ comments, space statuses, recurring tasks). Task batch-get is RBAC-filtered (inaccessible ids are omitted, not errors) and omits embedded subtasks. position is an opaque server-assigned lexorank string; there is no public reorder endpoint. Recurring tasks use owners/contactIds and rruleOptions.intervalType (task create uses assignees/contactId). Task search supports updatedAt filtering/sorting for incremental sync. The docs do not describe what a delete cascades to — treat every delete as destructive. Fetch Tasks By IDs Fetches multiple tasks by id in one call. Results are RBAC-filtered — inaccessible ids are omitted rather than erroring. Does not return embedded subtasks. Endpoint: POST /projects/tasks/batch (Version header: v3; source: v3/projects-v3.json) OAuth scopes: projects/tasks.readonly

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body (schema carried verbatim from the official OpenAPI spec).
locationIdNoLocation id. Required for APP channel (`?locationId=`). Ignored for OAuth/PIT (token location is used). Do not send in path, body, or headers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile, yet the description still adds genuinely useful behavior: inaccessible ids are silently omitted rather than erroring (prevents pointless retry loops), embedded `subtasks` are not returned, and the required OAuth scope (projects/tasks.readonly) plus v3 version header are stated. It does not describe the response envelope or pagination. Note the annotations mark readOnlyHint=false and idempotentHint=false for what is plainly a read-only batch fetch; the description is the accurate signal here, not the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Roughly two thirds of the text is a generic 'PROJECT MANAGEMENT API' preamble about hierarchy, lexorank `position`, recurring task field naming, and delete cascade behavior — none of which is actionable for a batch-get by id. The tool-specific content is buried after that preamble instead of front-loaded, so the agent must read past irrelevant material to find the two sentences that matter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter batch read with no output schema, the description covers the non-obvious essentials: silent RBAC omission, absent subtasks, scope, and version header. Missing is any hint about the returned task object shape or whether an empty result versus a partial result should be interpreted differently, but the core call decisions are supported.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both `ids` (1–100, examples) and `locationId` (required for APP channel, ignored for OAuth/PIT, not to be sent in path/body/headers) are already fully documented in the schema. The description adds no parameter-level detail beyond the RBAC consequence of passing ids, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The core sentence is specific: 'Fetches multiple tasks by id in one call,' giving verb + resource + batch semantics that distinguish it from the single-task sibling ghl_project_get_task. However, the definition never names that sibling or ghl_project_search_tasks, so the agent must infer the batch-vs-single distinction from the wording alone rather than being routed explicitly.

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

Usage Guidelines3/5

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

Usage is only implied. The preamble notes that 'Task search supports updatedAt filtering/sorting for incremental sync,' which hints that ghl_project_search_tasks exists as an alternative for filtered retrieval, but the description never says when to prefer this batch-get over that search or over single-task get. There are no explicit when-not conditions.

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

Deploy Server

Other Tools