Skip to main content
Glama

update_index_subject

Overwrite a subject's sort order and comment within a Bangumi index, adding it if absent. Use it to set or correct index entry details with an access token.

Instructions

Overwrite a subject's sort order and comment inside an Index (PUT /v0/indices/{index_id}/subjects/{subject_id}).

Requires BANGUMI_ACCESS_TOKEN. Upstream writes BOTH sort and comment on every PUT (and inserts the subject into the index if not already present), so always pass both desired values.

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": "update_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

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, but the description adds real behavior: it requires BANGUMI_ACCESS_TOKEN, it overwrites both fields regardless of what you pass, and it silently inserts the subject into the index. It does not cover failure modes (e.g. missing token, invalid index) or what the response contains, which is why it is not a 5.

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 sentences with the action and the endpoint front-loaded, followed by the auth requirement and then the critical gotcha. No filler; the only minor cost is the awkward line-wrapped formatting that slightly fragments the 'always pass both' warning.

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 a four-parameter mutation tool with no output schema and no schema descriptions, the definition covers the essentials an agent needs to call it safely: auth, overwrite semantics, and the implicit insert side effect. Return value and error behavior are left undocumented, but nothing in the structured data covers those either, so the residual gap is modest.

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 carries the burden, and it partially does: it names sort and comment as the two writable values and warns that omitting one still overwrites it with the schema default (0 / ""). It adds no meaning for sort ordering semantics or the index_id/subject_id identifiers beyond the URL template.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Overwrite a subject's sort order and comment inside an Index') plus the concrete endpoint, which pins down scope unambiguously. The word 'Overwrite' plus the note that upstream inserts the subject if absent also implicitly distinguishes this from add_index_subject and remove_index_subject.

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?

Gives a clear operative rule for invocation: 'always pass both desired values' because every PUT writes both fields. What it does not do is explicitly route the agent away from add_index_subject, even though it discloses that this call also inserts a missing subject — an overlap an agent must resolve on its own.

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