Skip to main content
Glama

search

Read-only

Find AFFiNE docs whose title or text contains your words, returning matching hits with short snippets so you can locate the right document quickly.

Instructions

Find docs whose title or text contains the words, with short snippets

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": {
      "query": "<query>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost hits to return, default 10
queryYes
workspaceNoWorkspace id or name, leave out for the default workspace

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact — results come back as 'short snippets' rather than full documents — but says nothing about relevance ordering, truncation, or that full text requires a follow-up read.

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?

One front-loaded sentence with no filler; the match scope and snippet behavior lead. It is terse rather than padded, though the terseness shades into under-specification.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the 'short snippets' hint carries part of the return-value burden, which is helpful. But for a search tool an agent still lacks ordering, pagination-vs-limit behavior, and whether snippets omit matched context, so it is only adequate.

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 67%, with limit and workspace already documented in the schema; the required 'query' has no schema description. The description implies the query is matched as words against title and text, which adds some semantic value, but it never clarifies multi-word behavior (AND vs OR), case sensitivity, or why limit/workspace matter.

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

Purpose4/5

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

The single sentence names a specific verb ('Find') and resource ('docs') and states the match criteria (title or text contains the words) plus the shape of the result ('short snippets'). This clearly separates it from read_doc or tree, though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing says to use this for keyword discovery and then read_doc for full content, nor how it relates to tree or list_boards. The intent is only inferable from the verb 'Find'.

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