Skip to main content
Glama

myco_sense

Search the substrate's markdown and yaml for a literal substring to verify facts before assertion. Returns ranked hits with file path, line number, and snippet.

Instructions

Perform a keyword substring search across the substrate's markdown + yaml surface and return ranked hits with file path, line number, and snippet. This is the R3 SENSE-BEFORE-ASSERT mechanism: before asserting a substrate fact from training memory, the agent calls this to check ground truth from the substrate itself (R3 of the Hard Contract).

Use this before making any claim about what the substrate contains — e.g. "the substrate says X" should always be preceded by a sense call that returned a hit for X. Fast (no embedding, no LLM, no network) — this is a literal substring scan over notes/, docs/, _canon.yaml, and MYCO.md. For broader semantic search, compose multiple sense calls with different keyword synonyms rather than expanding the query.

Side effects: none. Pure read. Does not touch .myco/state/ or any cache.

Returns: { exit_code, query, scope, hits: [ { path, line, snippet } ] }. hits is ordered by path then line number; snippet is the full matching line trimmed to reasonable width. Empty hits is a successful call with no matches — agent should treat "absence of hit" as "fact not in substrate" per R3.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesLiteral substring to search for. Case-insensitive. No regex, no glob — pass 'error' not 'err.*' (regex-in-query is treated as literal). For multi-term search, call sense multiple times and union results. Whitespace-only queries return empty hits.
project_dirNoAbsolute path of the workspace / project whose Myco substrate this call targets. Overrides auto-discovery. When omitted, Myco resolves via MCP roots/list, then MYCO_PROJECT_DIR, then cwd — the substrate_pulse field in every response echoes which source answered.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It states side effects are none, it's a pure read, and it does not touch .myco/state/ or cache. It also describes the return format. This is sufficient transparency for a read-only tool.

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?

The description is moderately lengthy but well-structured: it front-loads purpose, then usage guidelines, side effects, and return format. Every sentence adds value, though some could be tightened slightly.

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?

Given no output schema, the description fully describes the return format including fields and ordering. It covers side effects, usage guidelines, parameter nuances, and the R3 context. This is complete for a tool of this complexity.

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 coverage is 100%, so baseline is 3. The description adds significant value beyond the schema: it explains query is case-insensitive, literal substring, no regex, and project_dir auto-discovery with override. It also provides usage context like the R3 mechanism.

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 performs keyword substring search over the substrate's Markdown and YAML surface, returning ranked hits with file path, line number, and snippet. It uniquely identifies itself as the R3 SENSE-BEFORE-ASSERT mechanism, distinguishing it from all sibling tools (none of which are explicit search tools).

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?

It explicitly says to use this before making any claim about what the substrate contains, and for broader semantic search to compose multiple sense calls with synonyms. It also clarifies that regex is not supported. However, it does not explicitly state when not to use it beyond mentioning it's not for semantic search.

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/Battam1111/Myco'

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