Skip to main content
Glama

Queue Document Analysis

queue_document_analysis

Submit a document for asynchronous background NLP analysis including readability, entity extraction, and sentiment. Instantly receive a job ID to poll for results, ideal for large documents.

Instructions

Enqueue a background NLP analysis of one document (readability, entities, sentiment) and return a job id immediately without blocking. Poll the job with get_job_status and stop it with cancel_job. Use this for large documents where a synchronous analyze_document call would be slow; use analyze_document directly for quick, inline results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYes
optionsNoOptional flags selecting which analyses to run and the job priority.
documentIdYes
Behavior4/5

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

Description explains the async behavior (returns immediately without blocking) and mentions polling and cancellation. Annotations are sparse but consistent. Could elaborate on failure modes or rate limits, but overall clear.

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, each providing distinct value. No unnecessary words. Front-loaded with core purpose.

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?

Covers key workflow (enqueue, poll, cancel) and references sibling tools. No output schema, but description doesn't need to explain return values if absent. Minor gaps like error handling, but sufficient for usage.

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 low at 33%. Description adds context for optional flags (readability, entities, sentiment) but does not explain required parameters (documentId, content) beyond their names. Partially compensates but lacks full param detail.

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 tool enqueues a background NLP analysis of one document (readability, entities, sentiment) and returns a job id immediately. It distinguishes itself from analyze_document which is synchronous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises using this tool for large documents where synchronous analysis would be slow, and directs to use analyze_document for quick results. Also references polling and cancellation.

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