Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

set_file_category

Destructive

Moves a file to a specified category using its file ID and category ID, or removes it from any category by setting category ID to 0.

Instructions

Move a file to a category.

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": {
      "file_id": "<file_id>",
      "category_id": "<category_id>"
    },
    "name": "set_file_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes
category_idYes0 for no category

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the description must add context on what is destroyed — i.e. whether the file loses its previous category or can hold several. "Move" hints at reassignment, but the description never confirms replacement semantics, nor mentions the 0 sentinel that clears a category, which is the most consequential behavior here.

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

Conciseness3/5

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

A single short, front-loaded sentence with zero padding, which is structurally fine. However, the brevity here reads as under-specification rather than economy, since the space saved is not used for any of the behaviorally important details.

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

Completeness2/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, but for a destructive two-parameter mutation with partial schema coverage the description is too thin. It omits the category-clearing case, replacement vs. additive semantics, and any precondition, leaving the agent without what it needs to invoke this safely.

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

Parameters2/5

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

Schema coverage is only 50%: category_id is documented ("0 for no category") but file_id has no description at all, and the description adds nothing about either parameter. With half the parameters undocumented and no compensating detail in the prose, the agent is left guessing what file_id accepts and what category_id=0 actually does.

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?

States a specific verb and resource ("Move a file to a category"), which is enough to separate it from siblings like rename_file_category or delete_file_category. It lacks any explicit sibling differentiation, and "move" is slightly at odds with the tool name's "set", which could mean either reassignment or additive tagging.

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 mention of prerequisites (does the category need to exist?), and no reference to alternatives such as create_file_category or rename_file_category. The agent must infer the entire usage context from the one-line purpose.

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