Skip to main content
Glama

Search Documents

search
Read-onlyIdempotent

Search documents in an open Scrivener project for matching content or titles. Get relevance-ranked snippets to quickly find relevant resources.

Instructions

Search the open project and return matching documents with relevance-ranked snippets. By default performs an intelligent full-text/semantic search of document content; set field to "title" for a fast case-insensitive title lookup, or scope to "trash" to search only trashed documents. For meaning-based "find passages about X" queries use semantic_search; to find every occurrence of a specific name or term use find_mentions. Requires an open project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldNo"content" (default) searches document body text; "title" matches document titles only (fast, case-insensitive substring).
queryYes
regexNoTreat the query as a regular expression. Default false. Content search only.
scopeNo"active" (default) searches the live binder; "trash" searches only trashed documents.
searchInNoAdditional metadata fields to include in content search, e.g. "synopsis", "notes".
caseSensitiveNoMatch case exactly. Default false. Applies to content search.
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. Description adds behavioral details beyond annotations: returns relevance-ranked snippets, default intelligent search, field-specific behavior (fast title lookup), scope options. No contradiction with annotations.

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, front-loaded with main purpose. Every sentence adds value: purpose, parameter guidance, alternative tools, and prerequisite. No wasted words.

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 main purpose, key parameter distinctions, and alternatives. Lacks details like result limit, pagination, or error handling, but for a search tool with annotations and sibling context, it is mostly complete.

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?

Schema description coverage is 83%, so baseline is 3. Description adds context about default behavior and distinguishes field options (e.g., 'fast case-insensitive title lookup'). Adds value beyond 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?

Description clearly states verb 'search', resource 'open project', and output 'matching documents with relevance-ranked snippets'. It explicitly distinguishes from sibling tools like semantic_search and find_mentions.

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?

Provides explicit guidance on when to use alternatives ('For meaning-based queries use semantic_search; to find every occurrence use find_mentions') and prerequisite ('Requires an open project'). No explicit 'when not to use' statement, but alternatives imply exclusions.

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