Skip to main content
Glama
drive-it
by jedbjorn

search_scripts

Read-only

Search the current workspace script library by name, purpose, domain, or document kind to find active revisions; include drafts or retired history only when needed.

Instructions

Search the current workspace script library by name, purpose, domain, and document kind. Returns active revisions unless drafts or retired history are explicitly included.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoSpace-separated terms matched against id, name, purpose, domain, and kind
domainNo
documentKindNo
includeDraftsNo
includeRetiredNo

Output Schema

NameRequiredDescriptionDefault
scriptsYes
workspaceRootYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so safety is covered structurally. The description adds real behavioral value beyond that by disclosing the default result set (active revisions only) and the opt-in conditions for drafts and retired history, which is exactly the kind of scoping detail an agent needs. It does not describe ranking or result ordering, a minor gap.

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?

Two sentences, zero filler, with the verb and scope stated first and the default-filtering behavior front-loaded in the second sentence. Every clause carries information an agent needs.

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?

For a five-parameter optional-filter search tool with an output schema, the description covers purpose, scope, and default filtering adequately, and the output schema removes the need to explain return values. Remaining gaps (result ordering, domain value format) are minor.

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 description coverage is only 20%, so the description must carry weight; it partially does by mapping the searchable dimensions to domain and documentKind and by implying includeDrafts/includeRetired semantics. It leaves domain and documentKind format and whether multiple values are accepted unspecified, and query semantics are only in the schema for query itself.

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 description names a specific verb (Search) and resource (current workspace script library) and enumerates the searchable fields: name, purpose, domain, document kind. That is enough to distinguish it from a by-id lookup like get_script, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the second sentence tells the agent that drafts and retired revisions are excluded by default and must be opted into via includeDrafts/includeRetired. There is no explicit 'use this instead of X when...' guidance, so the agent must infer routing from the sibling list.

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