Skip to main content
Glama

extract_entity_candidates

Reads a chapter and proposes new entities plus new facts about existing entities, placing suggestions in a review queue for writer triage without confirming changes.

Instructions

Read a chapter and propose knowledge-base work from its prose: entities the chapter mentions that the book does not have yet, and — for a long enough chapter on a plan with Entity Check — new facts about entities it already has. Nothing is confirmed. Everything lands in a review queue for the writer, which you can read with list_entity_candidates and list_entity_facts and act on with the triage tools. Spends the owner's token quota (both legs) and needs an API key with the 'ai' scope. The reply lists everything currently pending on the book, not only what this run found.

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": {
      "bookId": "<bookId>",
      "chapterId": "<chapterId>"
    },
    "name": "extract_entity_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookIdYesBook ID
chapterIdYesChapter to read. Required for the maintain leg — a fact with no chapter has no place in time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses real behavioral traits: nothing is auto-confirmed, everything goes to a writer review queue, the call consumes the owner's token quota on both legs, and it requires an API key with the 'ai' scope. The last sentence also preempts a likely misreading of the result by noting the reply returns all currently pending items, not just this run's output.

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?

The core action and its scope are front-loaded in the first sentence, with cost/auth and result-shape details following. It is dense but every sentence carries distinct information; only the sentence about reading results via the list tools could be tightened.

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?

With no output schema, the description carries the burden of explaining the reply, and it does so explicitly (all pending items, not just new ones). Remaining gaps are minor: no indication of cost magnitude, latency, or behavior when re-run on the same chapter.

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 coverage is 100% and both parameters are already documented, including the rationale for chapterId ('a fact with no chapter has no place in time'). The description adds no additional per-parameter meaning, so the baseline of 3 applies.

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?

The description names a concrete verb and resource ('Read a chapter and propose knowledge-base work from its prose') and enumerates the two kinds of proposals it generates (new entities, new facts for existing entities). It is clearly distinguishable from the sibling read tools it names (list_entity_candidates, list_entity_facts) and from the triage tools, so an agent can select it without opening a schema.

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?

It gives a clear trigger context ('a long enough chapter on a plan with Entity Check') and routes the agent forward to list_entity_candidates / list_entity_facts and the triage tools for follow-up. It falls short of a full when-not statement — nothing warns against re-running on an already-processed chapter or explains how this differs from simply listing pending items.

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