Skip to main content
Glama

add_index_subject

Add a subject to a Bangumi Index or overwrite its existing entry; requires a Bangumi access token.

Instructions

Add (or overwrite if already present) a subject in a Bangumi Index (POST /v0/indices/{index_id}/subjects). Requires BANGUMI_ACCESS_TOKEN.

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": {
      "index_id": "<index_id>",
      "subject_id": "<subject_id>"
    },
    "name": "add_index_subject"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo
commentNo
index_idYes
subject_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so mutation and network reach are known. The description contributes genuine extra context: the overwrite-on-exists behavior, the exact HTTP route, and the BANGUMI_ACCESS_TOKEN requirement. It does not say which existing fields (sort, comment) get clobbered by an overwrite, which is the key remaining risk for a destructive-ish upsert.

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?

A single tight sentence with the action front-loaded followed by the endpoint and auth prerequisite. No waste, though the parenthetical placement interrupts the verb-resource phrase slightly.

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?

With no output schema and four undocumented parameters, the definition covers the mutation and auth story adequately but leaves the two optional fields opaque. For an upsert tool whose overwrite behavior is its main hazard, a note on what gets replaced would round it out.

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 description coverage is 0% across four parameters, so the description must carry the load, but it only gives meaning to index_id (via the URL path) and implicitly subject_id. The sort and comment parameters go entirely unexplained in both schema and description.

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 ('Add ... a subject in a Bangumi Index') plus the underlying endpoint, and the parenthetical adds the important overwrite semantic. It falls short of distinguishing itself from the sibling update_index_subject, which reads as an overlapping operation.

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 'or overwrite if already present' clause tells the agent what happens when the subject already exists, which is useful implied guidance. However, no condition explains when to choose this over update_index_subject or set_index_collection, so the alternative-selection logic 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.