Skip to main content
Glama

Refine a library submission

refine_library_item

Refine a library submission in review by requesting changes in plain words, preview proposed metadata and checks, then save the exact preview to apply it.

Instructions

For administrators: change a library submission in review by asking in plain words; preview the change, then keep it.

Refine by chat. For administrators: ask for a change to an item in review in plain words ("rename it to Weekly retro", "put it in Meetings", "Write a clearer one-line summary", "What should I check?"). Preview answers the proposal (metadata from and to, rule lines for a component's board, things to check) and its previewId; save with that previewId keeps exactly it, on the item and on the review copy. Simple renames, categories and summaries are read without AI.

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": {
      "itemId": "<itemId>",
      "message": "<message>"
    },
    "name": "refine_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosave (the default) writes; preview returns what would change and saves nothing. The response says which happened.save
itemIdYesThe item: its id or its slug (library.list items[].id or .slug).
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
historyNo
messageYes
previewIdNoSave: the previewId a preview answered. Keeps exactly that proposal (no second AI answer).
selfReviewNoReview your own submission. Allowed only on a server with one administrator; the thread records it.
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint false, destructiveHint false), but the description adds real value beyond them: preview saves nothing, saving with previewId keeps exactly that proposal with no second AI answer, and changes land on both the item and the review copy. It also discloses that simple renames, categories and summaries skip AI. It doesn't explain what happens on a stale or expired previewId, and 'Refine by chat' is somewhat redundant with the rest.

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?

The core workflow is front-loaded in the first sentence, which is good, but 'For administrators:' is repeated, 'Refine by chat.' is a fragment that restates the opening, and the paragraph is denser than needed. Several clauses repeat the preview-then-save idea three separate times.

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?

For an 8-parameter mutation tool with no output schema, the description does the important work: it describes what a preview response contains (metadata from/to, rule lines, things to check) and how the previewId closes the loop. Gaps around the confirmation flow and selfReview are largely covered by the schema's own parameter descriptions.

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

Parameters4/5

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

Schema coverage is 75%, so the schema already carries most parameter meaning, but the description clarifies the pairing semantics between mode=preview and previewId=save that the schema only hints at, and gives natural-language examples of what message accepts. It says nothing about confirm, idempotencyKey, selfReview or history, leaving those entirely to the schema.

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 and resource ('change a library submission in review') and an audience ('For administrators'), plus a concrete mode of interaction ('ask for a change ... in plain words'). It stops short of differentiating itself from the close sibling update_library_item, so an agent must infer why 'refine by chat' exists next to a plain update.

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

Usage Guidelines4/5

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

Usage context is clear: administrator-only, item must be 'in review', and the intended flow is preview first, then save with the returned previewId. It gives no explicit when-not guidance and never names an alternative tool for direct edits, so 5 is not warranted.

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

Deploy Server

Other Tools