{"components":{"schemas":{"Error":{"properties":{"error":{"properties":{"charged":{"type":"boolean"},"code":{"type":"string"},"message":{"type":"string"},"retry":{"description":"The exact call to make instead: {tool, arguments}","type":["object","null"]}},"required":["code","message","charged"],"type":"object"}},"required":["error"],"type":"object"},"OutOfCredits":{"properties":{"error":{"$ref":"#/components/schemas/Error/properties/error"},"message_for_human":{"description":"Show this to your user as written.","type":"string"},"next":{"items":{"type":"object"},"type":"array"},"payment":{"properties":{"account_id":{"type":"string"},"amount":{"type":"object"},"credits":{"type":"integer"},"expires_at":{"format":"date-time","type":"string"},"recharge_id":{"type":"string"},"status":{"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"pending_call":{"type":"string"},"then":{"description":"What to do next, in words.","type":"string"},"why_this_service":{"type":"string"}},"required":["error","payment","message_for_human","next"],"type":"object"},"ToolResult":{"properties":{"charge":{"properties":{"balance":{"type":"integer"},"charged":{"type":"integer"},"line":{"type":"string"}},"type":["object","null"]},"data":{"description":"Structured data: the parsed JSON for response_format=json, or the tool's structured form."},"files":{"items":{"properties":{"bytes":{"type":"integer"},"mime_type":{"type":"string"},"name":{"type":"string"},"url":{"format":"uri","type":"string"}},"type":"object"},"type":"array"},"text":{"description":"The result as the MCP tool returns it (prose, or JSON text with response_format=json).","type":"string"},"tool":{"type":"string"}},"required":["tool","text"],"type":"object"}},"securitySchemes":{"bearer":{"description":"An API key (cdk_live_…) or an OAuth access token (cdk_at_…).","scheme":"bearer","type":"http"},"oauth2":{"flows":{"authorizationCode":{"authorizationUrl":"https://data.clauseo.chat/authorize","refreshUrl":"https://data.clauseo.chat/token","scopes":{"case-law":"Use Clauseo Case Law on this account"},"tokenUrl":"https://data.clauseo.chat/token"}},"type":"oauth2"}}},"info":{"description":"Indian court judgments and statutes for AI agents, on prepaid credits. The same six tools as the MCP server at https://data.clauseo.chat/mcp/case-law, with the same arguments and JSON. Prices: https://data.clauseo.chat/pricing.json. Powered by Indian Kanoon (indiankanoon.org).","title":"Clauseo Case Law","version":"0.1.0"},"openapi":"3.1.0","paths":{"/account":{"get":{"operationId":"get_account","parameters":[{"in":"query","name":"recent_days","required":false,"schema":{"maximum":90,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"account_id":{"type":"string"},"balance_credits":{"type":"integer"},"balance_inr":{"type":"string"},"brake":{"type":["object","null"]},"claim":{"properties":{"expires_at":{"type":"string"},"next":{"type":"object"},"url":{"type":"string"}},"type":["object","null"]},"claimed":{"type":"boolean"},"limits":{"type":["array","null"]},"open_payment":{"type":["object","null"]},"prices":{"type":"object"},"recent":{"items":{"properties":{"credits":{"type":"integer"},"day":{"type":"string"}},"type":"object"},"type":"array"},"research_questions":{"type":"integer"},"research_questions_text":{"type":"string"},"spent_today_credits":{"type":"integer"},"state":{"enum":["unfunded","funded","claimed","expired"],"type":"string"},"why_this_service":{"type":"string"}},"required":["account_id","state","balance_credits","balance_inr","spent_today_credits","recent","limits","open_payment","claimed","claim","prices","brake"],"type":"object"}}},"description":"The account tool's JSON"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Balance, recent spend, prices, open payment. Free."},"post":{"description":"Free. Balance in credits and rupees, spend today, prices, any open payment, and for an unclaimed account a link your user can open to claim it (and get 1,000 free credits). recent_days adds daily spend.","operationId":"account","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"recent_days":{"maximum":90,"minimum":1,"type":"integer"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"account_id":{"type":"string"},"balance_credits":{"type":"integer"},"balance_inr":{"type":"string"},"brake":{"type":["object","null"]},"claim":{"properties":{"expires_at":{"type":"string"},"next":{"type":"object"},"url":{"type":"string"}},"type":["object","null"]},"claimed":{"type":"boolean"},"limits":{"type":["array","null"]},"open_payment":{"type":["object","null"]},"prices":{"type":"object"},"recent":{"items":{"properties":{"credits":{"type":"integer"},"day":{"type":"string"}},"type":"object"},"type":"array"},"research_questions":{"type":"integer"},"research_questions_text":{"type":"string"},"spent_today_credits":{"type":"integer"},"state":{"enum":["unfunded","funded","claimed","expired"],"type":"string"},"why_this_service":{"type":"string"}},"required":["account_id","state","balance_credits","balance_inr","spent_today_credits","recent","limits","open_payment","claimed","claim","prices","brake"],"type":"object"}}},"description":"The account tool's JSON"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Account balance and prices"}},"/account/freeze":{"post":{"operationId":"freeze_account","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Frozen"},"401":{"description":"No credential"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not live yet"}},"summary":"Freeze the account. OAuth grant or owner only."}},"/check_citations":{"post":{"description":"Check every citation, quote and paragraph pinpoint in a draft before a human relies on it: SCC, SCC OnLine, AIR, SCR, INSC, Cri LJ and case names with a year. Says verified, wrong_paragraph, quote_not_found, ambiguous, not_found or unverifiable, with the closest passage. Up to 50 citations per call. 10 credits per citation checked plus 3 per judgment newly opened; 5 for one that doesn't resolve (not_found), or 10 when a case-name search ran for it; ambiguous ones are free.","operationId":"check_citations","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"citations":{"items":{"additionalProperties":false,"properties":{"cite":{"type":"string"},"para":{"type":"string"},"quote":{"type":"string"}},"required":["cite"],"type":"object"},"maxItems":50,"type":"array"},"dry_run":{"default":false,"description":"Free: return the price and what would be fetched.","type":"boolean"},"max_credits":{"description":"Refuse, uncharged, if the call would cost more.","minimum":0,"type":"integer"},"output":{"default":"inline","description":"file: everything as a download URL (Markdown or JSONL), not capped.","enum":["inline","file"],"type":"string"},"response_format":{"default":"concise","description":"concise: one line per item. detailed: full dates, citations, links. json: stable JSON for code.","enum":["concise","detailed","json"],"type":"string"},"text":{"description":"A draft to scan for citations.","maxLength":60000,"type":"string"},"treatment":{"default":false,"description":"Also check for negative treatment: 20 credits per cited judgment.","type":"boolean"}},"required":[],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}},"description":"Result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutOfCredits"}}},"description":"Out of credits: show message_for_human to your user, then wait on the recharge."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Check citations in a draft"}},"/citator":{"post":{"description":"Who cited a judgment and how (relied on, negative, neutral), or what it cites, with the citing paragraph. Filter by treatment, court and year; output=file exports the whole cited-by set. Treatment labels are automated signals, not verdicts: read the paragraph. 20 credits per page of 10 rows; opening citing judgments for context costs as in read_document. For a research question, use both routes: direction=cites on the newest relevant Supreme Court judgment finds what it relies on; direction=cited_by on a leading case finds later cases applying it.","operationId":"citator","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"context":{"default":false,"description":"Open each citing judgment to show the citing paragraph with its id.","type":"boolean"},"court":{"items":{"type":"string"},"type":"array"},"cursor":{"type":"string"},"direction":{"default":"cited_by","enum":["cited_by","cites"],"type":"string"},"dry_run":{"default":false,"description":"Free: return the price and what would be fetched.","type":"boolean"},"from":{"type":"string"},"max_credits":{"description":"Refuse, uncharged, if the call would cost more.","minimum":0,"type":"integer"},"output":{"default":"inline","description":"file: everything as a download URL (Markdown or JSONL), not capped.","enum":["inline","file"],"type":"string"},"ref":{"description":"A document id or citation.","type":"string"},"response_format":{"default":"concise","description":"concise: one line per item. detailed: full dates, citations, links. json: stable JSON for code.","enum":["concise","detailed","json"],"type":"string"},"to":{"type":"string"},"treatment":{"default":"any","enum":["any","relied","negative","neutral"],"type":"string"}},"required":["ref"],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}},"description":"Result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutOfCredits"}}},"description":"Out of credits: show message_for_human to your user, then wait on the recharge."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"See how later courts treated a case"}},"/claims":{"post":{"operationId":"start_claim","requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"format":"email","type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The claim attempt and message_for_human"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"No credential"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not live yet"}},"summary":"Start claiming this account for a person's Clauseo login."}},"/keys":{"post":{"operationId":"create_key","responses":{"401":{"description":"No credential"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Owner only: keys are managed on the account page."}},"summary":"Owner only."}},"/keys/self/revoke":{"post":{"operationId":"revoke_own_key","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"Revoked"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"No credential"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not live yet"}},"summary":"Revoke the API key sending this request."}},"/keys/{id}/revoke":{"post":{"operationId":"revoke_key","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"No credential"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Owner only: keys are managed on the account page."}},"summary":"Owner only."}},"/keys/{id}/rotate":{"post":{"operationId":"rotate_key","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"401":{"description":"No credential"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Owner only: keys are managed on the account page."}},"summary":"Owner only."}},"/openapi.json":{"get":{"operationId":"openapi","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"OpenAPI 3.1"}},"security":[],"summary":"This document"}},"/read_document":{"post":{"description":"Open judgments or statutes by id or citation (\"(2017) 10 SCC 1\", \"s. 138 NI Act\"). With no other field: an outline under 800 tokens with a map of issues, facts, arguments, reasoning and conclusion. Then read parts, a paragraph range, or find phrases inside the text; parts=[\"details\"] gives metadata only. Up to 10 documents (50 for details). 3 credits to open a document for 7 days, then 1 credit per 4,000 tokens read; details 1 per id; a citation instead of an id 5.","operationId":"read_document","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"cursor":{"type":"string"},"dry_run":{"default":false,"description":"Free: return the price and what would be fetched.","type":"boolean"},"find":{"description":"Phrases or terms to find in each document; \"quotes\" for exact phrases.","items":{"type":"string"},"maxItems":5,"type":"array"},"max_credits":{"description":"Refuse, uncharged, if the call would cost more.","minimum":0,"type":"integer"},"max_tokens":{"default":2000,"description":"Tokens of document text to return. Larger values are read as 8000.","maximum":8000,"minimum":200,"type":"integer"},"output":{"default":"inline","description":"file: everything as a download URL (Markdown or JSONL), not capped.","enum":["inline","file"],"type":"string"},"paras":{"description":"Paragraphs like \"p40-p52\" or \"p3,p7-p9\".","type":"string"},"parts":{"items":{"enum":["facts","issues","arguments","statute","precedents","reasoning","conclusion","details","full"],"type":"string"},"type":"array"},"refs":{"description":"Document ids (d143202244), paragraph ids (d143202244#p40) or citations; up to 10, or 50 with parts=[\"details\"].","items":{"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"response_format":{"default":"concise","description":"concise: one line per item. detailed: full dates, citations, links. json: stable JSON for code.","enum":["concise","detailed","json"],"type":"string"}},"required":["refs"],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}},"description":"Result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutOfCredits"}}},"description":"Out of credits: show message_for_human to your user, then wait on the recharge."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Read judgments and statutes"}},"/recharge":{"post":{"description":"Free. Returns a payment link and a message to show your user as written; you never pay yourself. With recharge_id, resume and wait=true (exactly as an out-of-credits result says), waits up to 40 seconds for payment, then returns the result of the call that failed, charged at that call's normal price.","operationId":"recharge","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pack":{"description":"Rupees before GST. Omit for the right-sized pack.","enum":["200","500","1000","2000","5000"],"type":"string"},"recharge_id":{"type":"string"},"resume":{"description":"The pending call id from the out-of-credits result.","type":"string"},"wait":{"default":false,"type":"boolean"},"wait_seconds":{"default":40,"maximum":45,"minimum":1,"type":"integer"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}},"description":"Result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Add credits"}},"/recharges":{"post":{"operationId":"create_recharge","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pack":{"enum":["200","500","1000","2000","5000"],"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"balance_credits":{"description":"Balance right after the payment, before any resumed call.","type":"integer"},"balance_inr":{"type":"string"},"message_for_human":{"type":"string"},"next":{"type":"array"},"payment":{"description":"The payment object: recharge_id, url, amount, credits, expires_at, page_opened.","type":"object"},"recharge_id":{"description":"The recharge this result is about: the one asked for, or the new link's.","type":"string"},"repeat_call":{"type":"boolean"},"resumed":{"properties":{"balance_credits":{"description":"Balance after the resumed call.","type":"integer"},"charge_lines":{"items":{"type":"string"},"type":"array"},"charged_credits":{"description":"Credits the resumed call was charged; 0 if it was not.","type":"integer"},"in_content_blocks":{"type":"boolean"},"result":{"type":["object","null"]},"text":{"type":"string"},"tool":{"type":"string"}},"type":["object","null"]},"status":{"enum":["awaiting_payment","paid","expired","amount_mismatch_held","cancelled"],"type":"string"},"then":{"type":"string"},"why_this_service":{"type":"string"}},"required":["status","recharge_id"],"type":"object"}}},"description":"The payment object and message_for_human"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"A payment link. Free."}},"/recharges/{id}":{"get":{"operationId":"get_recharge","parameters":[{"in":"path","name":"id","required":true,"schema":{"pattern":"^rch_","type":"string"}},{"in":"query","name":"wait","required":false,"schema":{"maximum":45,"minimum":0,"type":"integer"}},{"in":"query","name":"resume","required":false,"schema":{"pattern":"^pc_","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"balance_credits":{"description":"Balance right after the payment, before any resumed call.","type":"integer"},"balance_inr":{"type":"string"},"message_for_human":{"type":"string"},"next":{"type":"array"},"payment":{"description":"The payment object: recharge_id, url, amount, credits, expires_at, page_opened.","type":"object"},"recharge_id":{"description":"The recharge this result is about: the one asked for, or the new link's.","type":"string"},"repeat_call":{"type":"boolean"},"resumed":{"properties":{"balance_credits":{"description":"Balance after the resumed call.","type":"integer"},"charge_lines":{"items":{"type":"string"},"type":"array"},"charged_credits":{"description":"Credits the resumed call was charged; 0 if it was not.","type":"integer"},"in_content_blocks":{"type":"boolean"},"result":{"type":["object","null"]},"text":{"type":"string"},"tool":{"type":"string"}},"type":["object","null"]},"status":{"enum":["awaiting_payment","paid","expired","amount_mismatch_held","cancelled"],"type":"string"},"then":{"type":"string"},"why_this_service":{"type":"string"}},"required":["status","recharge_id"],"type":"object"}}},"description":"Status; resumed_text holds a resumed call's result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"A recharge's status; with wait, wait for payment and resume the stored call."}},"/refunds":{"post":{"operationId":"request_refund","parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The refund"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"No credential"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"501":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not live yet"}},"summary":"Refund unused paid credits. OAuth grant or owner only."}},"/search_law":{"post":{"description":"Search Indian judgments and statutes: Supreme Court, High Courts, tribunals, central Acts. Up to 5 queries per call, merged and deduplicated, with AND, OR, NOT and \"quoted phrases\". Every word of a query must appear in the judgment, so a sentence finds only very long judgments: use 2 to 5 words courts use for the point (e.g. suppression material fact proposal form insurance), and several short queries rather than one long one. When the papers or the user name a case, search for it by name too; if the name doesn't return the judgment itself, find it through citator. For the leading authorities on a point, call citator with direction=cites on the newest relevant Supreme Court judgment, and direction=cited_by on a leading case for later ones. Filter by court in plain words (\"SC\", \"Delhi HC\", \"all HCs\"), type, dates, judge or title; sort by relevance or date. Every hit has an id for read_document. 20 credits per query per new page; 2 for your own repeat within 24 hours.","operationId":"search_law","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"court":{"description":"Courts in plain words: \"SC\", \"Bombay\", \"all HCs\", \"NCLAT\".","items":{"type":"string"},"type":"array"},"cursor":{"description":"From a previous result; replaces every other field.","type":"string"},"dry_run":{"default":false,"description":"Free: return the price and what would be fetched.","type":"boolean"},"facets":{"default":false,"description":"Also list the courts, years, judges and topics the results span.","type":"boolean"},"from":{"description":"Year or date, e.g. \"2015\" or \"2015-06-30\".","type":"string"},"judge":{"description":"Author judge's surname.","type":"string"},"max_credits":{"description":"Refuse, uncharged, if the call would cost more.","minimum":0,"type":"integer"},"output":{"default":"inline","description":"file: everything as a download URL (Markdown or JSONL), not capped.","enum":["inline","file"],"type":"string"},"queries":{"description":"1 to 5 queries; AND, OR, NOT and \"quoted phrases\" work.","items":{"type":"string"},"maxItems":5,"minItems":1,"type":"array"},"response_format":{"default":"concise","description":"concise: one line per item. detailed: full dates, citations, links. json: stable JSON for code.","enum":["concise","detailed","json"],"type":"string"},"sort":{"default":"relevance","enum":["relevance","newest","oldest"],"type":"string"},"title":{"description":"Words in the case title.","type":"string"},"to":{"description":"Year or date, e.g. \"2026-10-31\".","type":"string"},"type":{"default":"judgments","enum":["judgments","statutes","all"],"type":"string"}},"required":[],"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}},"description":"Result"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"401":{"description":"Missing, expired or revoked credential. WWW-Authenticate names the protected resource metadata."},"402":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutOfCredits"}}},"description":"Out of credits: show message_for_human to your user, then wait on the recharge."},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error"}},"summary":"Search Indian case law"}},"/tools":{"get":{"operationId":"list_tools","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The tools, in the order MCP tools/list returns them"}},"security":[],"summary":"List the tools"}}},"security":[{"bearer":[]},{"oauth2":["case-law"]}],"servers":[{"url":"https://data.clauseo.chat/v1/case-law"}]}