Skip to main content
Glama
slymnysr

sift

by slymnysr

Run a dense tool

tool
Destructive

Run ast-grep structural search, difftastic diffs, or scc size counts and get a distilled summary of their output—without opening files.

Instructions

Run one of three dense tools and return a distilled view of what it printed: sg (ast-grep) for structural search, diff (difftastic) for a diff that can tell a reindent from a change, loc (scc) for the size of a tree. Each of them answers a question without opening the file -- reach for sg instead of reading candidates to find where a shape occurs, and loc instead of listing a directory to size it. Their output is large by nature and is distilled like anything else, so a 4,000-line structural search costs a screenful with every byte still reachable through peek. A tool this machine does not have says so and says what it is called; nothing is installed for you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNo
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.2

TDQS

C2.6/5.0
Behavior2/5

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

Despite the annotation destructiveHint=true, the description makes no mention of potential side effects or modifications to the environment. It only references error handling ('a tool this machine does not have says so'), omitting any disclosure about destructive behavior, which is a significant transparency gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is verbose and meandering, using awkward metaphors like 'a 4,000-line structural search costs a screenful' and redundant phrasing. Its single-paragraph structure lacks clear organization, making it harder to parse the essential information quickly.

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

Completeness2/5

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

The output format is only vaguely described as 'a distilled view of what it printed', without concrete details on structure or content. It mentions that output is 'reachable through peek' but does not explain the full response shape or error scenarios beyond a cryptic reference to unavailable tools, leaving gaps for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema includes two parameters (name and args) with zero description coverage. The description does not explain what 'name' refers to (presumably the tool name among sg/diff/loc) or how 'args' should be structured, leaving the agent without any guidance on how to populate these fields.

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 clearly states the tool runs one of three specific tools (sg, diff, loc) and returns a distilled view, which distinguishes it from generic tools. The phrase 'reach for sg instead of reading candidates' and similar clarify the intended use cases, though the description is convoluted and could be more direct.

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?

The description provides guidance for when to use the underlying tools (sg for search, loc for sizing) and mentions distillation of large output. However, it does not explicitly compare this tool to sibling tools like 'run' or state when to prefer this over alternatives, leaving the choice partially implicit.

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/slymnysr/sift'

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