Skip to main content
Glama

Add Item From Metadata

add_item_from_metadata

Create a Zotero item from manual, CSL-like, or parsed metadata while validating fields by item type, and optionally save it to a specific library or collection.

Instructions

Add an item from manual, CSL-like, or previously parsed metadata.

The Zotero item template determines which fields are accepted for the requested item type, preventing invalid cross-type metadata.

Pass both library_id and library_type to target another library; omit both to use the configured default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
fieldsNo
creatorsNo
item_typeYes
library_idNo
library_typeNo
collection_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / library_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Library Id"
      +}
    • addedInput schema / properties / library_type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "user",
      +        "group"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Library Type"
      +}
  2. First observedv0.9.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this is a mutating but non-destructive operation. The description adds useful behavioral context: the Zotero item template determines which fields are accepted, preventing invalid cross-type metadata. However, it doesn't disclose what happens on validation failure, whether partial metadata is accepted, or what the response contains. With annotations covering the basic safety profile, a 3 is appropriate.

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?

Three short paragraphs with no filler. The core purpose is front-loaded in the first sentence, followed by the template constraint and library targeting guidance. Every sentence earns its place. It could be slightly more compact, but the structure is clear and scannable.

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?

The description covers the core purpose, the template constraint, and library targeting. However, with 7 parameters and 0% schema coverage, it leaves fields, creators, and collection_id semantics to inference. The output schema exists, so return values don't need explanation, but the parameter semantics gap makes this only minimally complete for an agent to call it correctly with complex metadata.

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 for the schema's lack of parameter documentation. The description explains the role of item_type (template determines accepted fields) and library_id/library_type (targeting another library), but it doesn't explain the semantics of fields, creators, or collection_id beyond what their names imply. The description adds some value but doesn't fully compensate for the 0% coverage.

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 states a specific verb ('Add') and resource ('an item') with a clear qualifier ('from manual, CSL-like, or previously parsed metadata'). It distinguishes itself from sibling tools like add_paper_by_doi or add_book_by_isbn by focusing on metadata-based creation rather than identifier-based lookup. However, it doesn't explicitly name a sibling alternative, so differentiation is implied rather than stated.

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?

The description gives clear context for when to use this tool: when you have metadata in manual, CSL-like, or previously parsed form. It also provides explicit guidance on library targeting ('Pass both library_id and library_type to target another library; omit both to use the configured default'). It doesn't explicitly say when NOT to use it (e.g., when you have a DOI/ISBN/arXiv ID, use the sibling tools), but the context is clear enough for an agent to route correctly.

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