Skip to main content
Glama

Get Referencing Documents

get_referencing_documents
Read-onlyIdempotent

Find all documents referencing a specific character or location, ranked by mention count. Trace an entity's footprint across your manuscript.

Instructions

Find every document that mentions a given character or location, ranked by mention count. Accepts the entity by exact registry id or by name (case-insensitive). Use this to trace an entity's footprint across the manuscript. Returns empty when nothing references it or the entity is unknown. Requires an open project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYesRegistry id or name of the character/location, e.g. "Elena".

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYesThe queried id or name.
documentsYesDocuments referencing the entity, most mentions first.
Behavior4/5

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

Annotations already indicate idempotent, read-only, non-destructive behavior. The description adds valuable context: accepts entity by id or name (case-insensitive), ranked results, and empty return for unknown entities. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no redundant words, front-loaded with the primary purpose. Every sentence adds useful information.

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?

Given the simple parameter set and presence of an output schema, the description adequately covers purpose, input method, edge cases, and prerequisites. It omits ranking order details, but that is acceptable with an output schema.

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?

The sole parameter 'entity' has a schema description, but the tool description adds that it accepts both registry id and name (case-insensitive) and gives an example. This clarifies usage beyond the schema.

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 clearly states the verb 'find' and the resource 'documents that mention a given character or location', with ranking by mention count. It differentiates from siblings like 'find_mentions' by focusing on cross-document references.

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 tells when to use: 'trace an entity's footprint across the manuscript'. It also specifies prerequisites ('Requires an open project') and edge cases ('Returns empty when nothing references it or the entity is unknown'). However, it does not explicitly state when not to use or mention alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/writerslogic/scrivener-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server