find_similar_equation
[MAINTENANCE] 06df6ab3 — fuzzy-match a LaTeX string against every equation already indexed (via index_equation) for one stored document, best match first. Each result carries the stored equation row PLUS a difflib similarity score (0..1) against its latex_normalized. Useful before index_equation ...
This record as markdown: /tools/io-github-ajc3xc-meridian/find-similar-equation.md
What find_similar_equation does on Meridian
AI agents call find_similar_equation to retrieve information from Meridian without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
doc | string | Yes | The stored document's source (the path/URL you ingested it under via ingest_document, which registers a docx/latex document in the doc-structure store). |
latex | string | Yes | LaTeX source to fuzzy-match against this document's stored equations. |
limit | integer | — | Max matches to return (default 5). |
project_id | string | — | |
project_name | string | — | Project name — an alternative to project_id; resolved to the id internally. project_id wins if both are given. |
Parameters from the server's own tool schema.
Why find_similar_equation is rated Low
This tool retrieves and queries stored equation data with a similarity comparison, which is a read-only operation. It has no side effects, does not modify or delete data, and does not execute code or trigger external operations. The worst case of misuse is unnecessary database queries with no harmful outcome. Confidence is high as the description clearly indicates read-only retrieval behavior.
From the tool's definition Tool performs fuzzy-matching and retrieval operations: 'fuzzy-match a LaTeX string against every equation already indexed', 'Each result carries the stored equation row', 'Returns {document_id, matches:[...]}'.
Risk signalsBulk/mass operation — affects multiple targets
Attacks that exploit this kind of access
The rule that runs find_similar_equation safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Meridian, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For find_similar_equation, this is the rule to start with:
find_similar_equation is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Meridian, apply this rule, and every find_similar_equation call is checked against it from then on.
Questions about find_similar_equation
[MAINTENANCE] 06df6ab3 — fuzzy-match a LaTeX string against every equation already indexed (via index_equation) for one stored document, best match first. Each result carries the stored equation row PLUS a difflib similarity score (0..1) against its latex_normalized. Useful before index_equation to check whether an equation is already present under a slightly different LaTeX spelling. Returns {document_id, matches:[...]} — an empty list (never an error) when the document has no stored equations, or doc doesn't resolve to a stored document. It is categorised as a Read tool in the Meridian MCP Server, which means it retrieves data without modifying state.
find_similar_equation accepts 5 parameters: doc, latex, limit, project_id, project_name. Required: doc, latex. The full parameter table on this page comes from the server's own tool schema.
Register the Meridian MCP server in PolicyLayer and add a rule for find_similar_equation: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Meridian. Nothing to install.
find_similar_equation is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the find_similar_equation rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for find_similar_equation. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
find_similar_equation is provided by the Meridian MCP server (@meridianmcp/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Meridian, and thousands of servers like it.
This server
Across the catalogue