Developer recipe / Python 3.11 or newer, standard library, no model
Ground an assistant on LiquiLens records and check its figures.
One file. It resolves a bank or NBFC to one LiquiLens id, reads that institution's cited records over MCP at https://api.liquilens.in/mcp, checks each record's seal, and marks every number in your assistant's draft as found or not found in those records. It makes no model call, retries nothing and writes no file.
Steps
Entity first. Records next. Figures last.
- Keep a key in your environmentA free key raises the free view's limits. The recipe reads it from
LIQUILENS_API_KEYand sends it only as an Authorization header tohttps://api.liquilens.in/mcp, never in a URL. The recipe takes no key on its command line and never prints it. Without a key it uses the free view.export LIQUILENS_API_KEY=<your key> - Resolve the entityThe recipe calls
ontology_contextwith the name. An ambiguous name returns its candidates and stops; a name that is not an institution stops too. Nothing is guessed.python3 assistant_grounding.py "IDBI Bank Limited" - Read the cited recordsFrom the coverage entries the server returns, the recipe calls only
institution_review_packet,bank_asset_quality_review,institution_evidence_monitor, with exactly the arguments the server gives. Every other entry is listed and not called. Each record keeps its source, as-of date and publisher. - Check the sealsA record served whole carries
content_sha256; the recipe recomputes it over the record's other fields. A record served withsealedset to false is reported as unsealed, which is how a view that withholds depth is served. - Check the draft's figuresPass your assistant's draft. Each number in it comes back found or not found in the records just read; dates are left out, and a percentage matches only a percentage. Exit code 0 means every number was found, 3 means at least one was not, and 2 means the name did not resolve to one institution.
python3 assistant_grounding.py "IDBI Bank Limited" --draft answer.txt
Connect your assistant
The same server, with your key in a header.
Use the canonical address with your key in the client's header setting, never in the URL.
claude mcp add --transport http liquilens https://api.liquilens.in/mcp --header "Authorization: Bearer $LIQUILENS_API_KEY"Your shell fills in $LIQUILENS_API_KEY from your environment when you run this line once, and the client saves the header in its own MCP settings. In other clients, put the key in the header setting the client gives for a remote MCP server. Give your model the records as context, ask it to cite the as-of date and publisher of every figure, and run the check before an answer is shown.
What the check is
Numeric membership, not a verdict.
- Numeric membership against cited public recordsA number is found when the records read contain the same value. The check does not judge whether a sentence is true, and it is not verification of past risk or return claims, which SEBI assigns to PaRRVA.
- BoundedEach request has a 20-second deadline and a response cap; there is no automatic retry, no scheduler and no file write.
- Read-onlyEvery call is a read of public records. The recipe cannot change anything on the server.
- What comes nextFigure Check, the same membership check served by LiquiLens, is not served yet. It ships with a LiquiLens release and is then included in Analyst and Team. It is offered to SEBI-registered entities and to publishers that give no investment advice. LiquiLens for AI programmes has the prices.