Skip to main content
Glama

LemmaField

search_theorems

Read-onlyIdempotent

Search verified theorem records and verified declarations within published papers, including theorem aliases. Each paper declaration has its own page. Use q for keywords or name for an exact Lean declaration.

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_theorems"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoKeywords, record ID or qualified declaration.
nameNoExact qualified Lean declaration name.
fieldNoResearch field.
limitNoPublished records per page.
cursorNoOpaque nextCursor from the previous search page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is fully conveyed structurally. The description adds useful context that the search spans published papers and aliases, and that each declaration has its own page (a result-navigation hint). It says nothing about result volume, ranking, or pagination behavior beyond what the cursor parameter schema implies.

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?

Three short sentences with the resource scope front-loaded and the parameter guidance last; there is essentially no filler. The middle sentence 'Each paper declaration has its own page' is slightly cryptic and its payoff is unclear, but it is cheap and plausibly useful for result interpretation.

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

Completeness3/5

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

With five parameters, zero required, and no output schema, the description carries the burden of describing what comes back, and it does so only obliquely via the 'own page' remark. Search tools typically warrant a note on result shape or pagination, which is missing here. The inputs are well covered by a 100%-described schema, so the gap is confined to return behavior.

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 100%, so baseline is 3; the description earns above baseline by disambiguating the two search modes — keywords versus an exact qualified Lean declaration name — which is the main selection decision an agent faces and is not made explicit in the schema. The field, limit, and cursor parameters are left entirely to the schema, which covers them adequately.

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: searching 'verified theorem records and verified declarations within published papers, including theorem aliases.' That is more precise than the name alone and scopes what is indexed (theorems, declarations, aliases). It does not explicitly contrast itself with siblings such as find_equivalent_theorems or find_open_problems, so it stops short of full differentiation.

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 sentence 'Use q for keywords or name for an exact Lean declaration' gives real intra-tool routing between the two primary search modes. However, there is no guidance on when to choose this tool over find_equivalent_theorems, find_open_problems, or when the search is inappropriate (e.g., exact dependency lookup belongs to get_dependencies). Usage is implied rather than fully framed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.