Get collection
gitbook_get_collectionGet a collection by its ID. GitBook REST: GET /collections/{collectionId}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes | The collection id. |
gitbook_get_collectionGet a collection by its ID. GitBook REST: GET /collections/{collectionId}.
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes | The collection id. |
Changes observed during successful MCP inspections.
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds the underlying REST verb/path, which is mildly useful orientation, but adds no context about failure modes (e.g., what happens with an unknown ID) or auth/rate constraints.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tight sentences: the purpose is front-loaded and the endpoint reference is a compact secondary clause. Nothing is padding.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter read-only lookup with an annotation-covered safety profile and no output schema, the definition is essentially sufficient. The only minor gap is no note about behavior on a missing/invalid collectionId.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and the single parameter (collectionId) is fully documented in the schema, so the baseline of 3 applies. The description adds no format, sourcing, or constraint detail beyond what the schema already provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb (Get) and resource (collection) scoped by a singular identifier ('by its ID'), which cleanly separates it from the sibling gitbook_list_collections. It stops short of naming that sibling explicitly, so it is clear but not sibling-differentiating at the highest level.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is only implied: 'by its ID' suggests it is the single-record lookup to use once an ID is known, in contrast to list_collections. There is no explicit when-to-use/when-not statement, prerequisites, or named alternative.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.