Skip to main content
Glama

Link document to item

glpi_create_document_item

Create a link between a document and an item (Ticket, KnowbaseItem, etc.).

Input Schema

NameRequiredDescriptionDefault
items_idYesTarget item ID
itemtypeYesTarget item type, e.g. Ticket, KnowbaseItem
documents_idYesDocument ID

Output Schema

NameRequiredDescriptionDefault
dataNo
replayedNoTrue when an identical recent create was returned instead of repeated

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false and openWorldHint=true, so the mutation profile is covered. The description adds nothing beyond that: it does not warn that repeated calls create duplicate links (non-idempotent), nor state permission requirements, despite being the natural place to do so.

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?

A single front-loaded sentence with no filler, correctly stating verb and operands first. It is efficient, though 'etc.' leaves the accepted itemtype set open rather than bounded.

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

Completeness3/5

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

An output schema exists, so return values need not be explained. However, for a non-idempotent linking mutation with three required parameters, the description omits the lifecycle context (existence prerequisites, duplicate-link behavior) that an agent needs to call it safely, leaving it minimally viable.

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 the schema already documents documents_id, itemtype and items_id, and the description only echoes the itemtype examples ('Ticket, KnowbaseItem'). With the schema doing the heavy lifting, baseline 3 is appropriate; no format, ID-space or type-mismatch guidance is added.

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 description names a specific verb ('Create a link') and both resources (document and item), and enumerates example target types (Ticket, KnowbaseItem). It implicitly separates itself from glpi_create_document (creates the document) and glpi_get_document_item/glpi_list_document_items (reads links), but never explicitly routes the agent among those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no stated prerequisites (e.g. that the document must already exist, likely via glpi_create_document, and that the target item must exist), and no mention of the read-side siblings glpi_get_document_item or glpi_list_document_items for verification.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.