Skip to main content
Glama
balalaika-ai

narya-mcp

Official
by balalaika-ai

Narya Search

narya_search

Search Narya declarations by name, words, or meaning to find lemmas, definitions, and types. Filter by file, kind, or proof hole to locate importable results.

Instructions

Find declarations (lemmas, definitions, types) by name, words or meaning; Narya itself has no search command.

query may be words ("loop space of the circle"), identifiers or parts of them ("concat inverse"), a book label ("lem:circle-loopspace") or an exact name (ranked first). The index covers names, signatures, the comment above each declaration and the project's annotation files. With file (and optionally line), only declarations importable there are returned. With session_id and hole, the constants in the hole's type are added to the query and the scope is the session's file. kind: def, axiom, data, codata or record.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNo
holeNo
kindNo
lineNo
limitNo
queryNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses what the index covers (names, signatures, the comment above each declaration, annotation files), the scoping behavior of file/line, the session-scoped hole behavior, and that exact-name matches are ranked first. It omits auth/rate-limit and result-ordering details, but for a read-only search this is solid disclosure.

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?

Purpose is front-loaded in the first clause, followed by query-format guidance, index coverage, and scoping rules in a logical order. Every sentence conveys a distinct, actionable fact with no padding.

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?

For a seven-parameter, zero-annotation search tool, the description covers purpose, query grammar, index scope, and the file/session/hole modes, and an output schema exists so return values need not be explained. Only the limit parameter is left uncovered, a minor omission.

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 description coverage is 0%, so the description must compensate, and it does for six of seven parameters: query formats (natural words, identifier fragments, book labels, exact names), file/line importability scoping, session_id+hole semantics, and kind values (def, axiom, data, codata, record). The limit parameter (default 10) is never mentioned, leaving one gap.

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 opens with a specific verb+resource: 'Find declarations (lemmas, definitions, types) by name, words or meaning,' and adds that Narya has no native search, clarifying this is a synthetic search layer. It does not, however, differentiate itself from the sibling narya_lookup, which plausibly overlaps.

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 gives clear conditional guidance: 'With file (and optionally line), only declarations importable there are returned' and 'With session_id and hole, the constants in the hole's type are added.' This tells the agent which parameter combinations trigger which scope, but no explicit when-not or named alternative is offered.

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