Skip to main content
Glama

tag_search_results

Run a full-text search and append tags to every matching file in a single operation. Tags are added without modifying file content.

Instructions

Bulk-tag — run an FTS search and append add_tags to every matching file in one call. Side effect: each match gets addTags applied (additive, idempotent per tag); the matched files themselves are NOT modified beyond their tag links. Per-file failures isolated to errors[]. No external auth or rate limits. There is NO dry-run flag, so ALWAYS run search with the same query first to verify the match set before tagging. The tags[] filter requires existing tags to ALL match (it scopes the search; it does not control which tags get added). Returns {matched_count, tagged_count, tags_applied, tagged_ids, errors}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesFull-text search query
add_tagsYesTags to add to every matching file
project_idNo
tagsNoFilter — only matches that already carry ALL of these tags
favoriteNo
Behavior5/5

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

Discloses side effects (additive, idempotent tagging), that files themselves are not modified beyond tag links, per-file failure isolation, and absence of authentication or rate limits. Since no annotations exist, the description fully carries this burden.

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?

The description is concise (~100 words) and well-structured: purpose first, then side effects, then usage guidance. Every sentence adds necessary information without redundancy.

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

Completeness5/5

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

Covers all relevant aspects: operation, side effects, parameter roles, usage precautions, error handling, and return fields (despite no output schema). Complete for a tool that combines search and tagging.

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?

With 60% schema coverage, baseline is 3. The description adds value by explaining the role of parameters in context (e.g., query is FTS, tags filter requires all matches, add_tags are applied to all matches). It clarifies interplay beyond schema definitions.

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's purpose: 'Bulk-tag — run an FTS `search` and append `add_tags` to every matching file in one call.' It distinguishes from siblings like 'search' and 'add_tags' by combining both actions.

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 to run `search` first to verify matches because there is no dry-run flag. Also clarifies that the `tags[]` filter scopes the search, not the tags added. Provides clear when-to-use and when-not-to-use guidance.

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/safiyu/kontexta'

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