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.).

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": {
      "documents_id": "<documents_id>",
      "itemtype": "<itemtype>",
      "items_id": "<items_id>"
    },
    "name": "glpi_create_document_item"
  }
}

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. Changed1 schema field changed
    • changedInput schema / properties / items_id / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/documents_id/anyOf/0"
      -  },
      -  {
      -    "$ref": "#/properties/documents_id/anyOf/1"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^0*[1-9]\\d*$",
      +    "type": "string"
      +  }
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds the link semantics but says nothing about the consequence of the declared non-idempotency — whether calling twice creates a duplicate link or returns an error — which is the single most decision-relevant behavior for this tool.

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?

A single front-loaded sentence with the verb, the relationship, and the item examples in that order. Nothing is padded and nothing needs to be re-read.

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?

With an output schema present, annotations covering the safety profile, and full parameter documentation, the definition is nearly sufficient as-is. The remaining gap is behavioral: no statement about duplicate links or failure modes when the document or item does not exist.

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% and all three parameters are documented there, so the schema carries the burden. The description's "(Ticket, KnowbaseItem, etc.)" echoes the itemtype example already present in the schema and adds no new constraints or format detail.

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?

"Create a link between a document and an item" names a specific verb (create) and the two resources being related, with concrete item examples (Ticket, KnowbaseItem). This clearly separates it from the read-side sibling glpi_get_document_item and from glpi_create_document, which creates the document itself rather than the association.

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 implied by the phrasing: this is the step after a document exists and you want it attached to a ticket or knowledge-base entry. However, no alternative is named and no precondition is stated (e.g., the document must already exist, the item must already exist), so an agent must infer the sequencing itself.

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.