Skip to main content
Glama

devtune_upload_library_item

Destructive

Upload a text document into the project Library, optionally replacing an existing upload as its next version.

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": {
      "content": "<content>",
      "title": "<title>"
    },
    "name": "devtune_upload_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
contentYes
replaceItemIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds valuable versioning semantics ('as its next version') that annotations cannot express, but it does not say what happens to prior versions or what errors occur for an unknown replaceItemId — and the versioning wording sits in mild tension with destructiveHint=true.

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 that states the action, the target location, and the optional modifier without any filler. Nothing can be removed without losing meaning.

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?

Annotations cover the mutation safety profile and there is no output schema to explain. The remaining gap is that the agent is not told what the call returns (presumably an item identifier needed for later reads/updates) or what happens on version replacement failure, which matters for a write tool.

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 0%, so the description must compensate. It does address all three parameters in prose (title/content via 'text document', replaceItemId via 'replacing an existing upload'), but gives no format or constraint detail such as the UUID format of replaceItemId or the 500,000-character content cap.

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?

Clear specific verb and resource: upload a text document into the project Library, with the added scope note that it can create the next version of an existing upload. It does not explicitly contrast itself with the sibling devtune_update_library_item, which is a near-neighbour an agent could reasonably confuse with version-replacement.

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?

The phrase 'optionally replacing an existing upload as its next version' implies when replaceItemId should be used, but there is no explicit when-to-use guidance, no prerequisites (e.g. the item must already exist), and no named alternative such as devtune_update_library_item. Usage is left to inference.

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.

Resources