Skip to main content
Glama
zotero-local-api-mcp

zotero-local-api-mcp

by Matcraft94

create_items

Create one or more Zotero items from a JSON array, each with itemType and title, plus optional creators, DOI, date, and tags. Returns the keys of the created items.

Instructions

Create one or more Zotero items. items_json is a JSON array of objects, each with at least itemType and title, e.g. [{"itemType": "journalArticle", "title": "...", "creators": [{"creatorType": "author", "firstName": "A", "lastName": "B"}], "DOI": "10....", "date": "2024", "tags": [{"tag": "x"}]}]. Returns the keys of the created items.

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": {
      "items_json": "<items_json>"
    },
    "name": "create_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
items_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral load. It does disclose the return value ("Returns the keys of the created items"), which is useful, but it omits mutation-relevant behavior: required write permissions, target library semantics, batch size limits, and what happens on partial failure when multiple items are submitted.

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?

Front-loaded with the action, then immediately the key parameter contract and return value; no filler sentences. The inline example is long but earns its place by disambiguating an otherwise undocumented parameter.

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?

An output schema exists and return values are already noted, and the single parameter is well explained. However, for a write operation with zero annotation coverage, the definition should have covered permissions, which library is written to, and batch-failure behavior before an agent commits to calling it.

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 0% – the schema only offers an opaque "Items Json" string – so the description fully compensates with the array-of-objects shape, the required itemType/title fields, and a concrete example showing creators, DOI, date, and tags. Minor deduction: it calls the parameter a "JSON array of objects" while the schema types it as a string, leaving the JSON-encoding requirement implicit.

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 ("Create one or more Zotero items") and names the domain object type. It does not explicitly contrast with siblings such as create_collection or search_items, but the verb+resource pairing is unambiguous enough to distinguish it in practice.

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 explicit when-to-use or when-not-to-use guidance, no mention of which library/collection items land in, and no prerequisites such as authentication or permissions. The agent must infer all of this from the name alone.

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