{"serverInfo":{"name":"anuario","title":"Anuário das empresas portuguesas","version":"0.1.0","websiteUrl":"https://anuario.pt"},"authentication":{"required":false,"schemes":[]},"tools":[{"name":"identify_company","title":"Identify a company from a line of text","description":"Give a line as it appears on an invoice, receipt, bank statement or the tax portal (for example \"513686290 - CELIA ISABEL GODINHO UNIPESSOAL LDA\" or \"COMPRA 1234 IMPERIO BIFANAS VENDAS NOVAS\"). Finds a Portuguese tax number in it, or failing that searches by the words, and returns the company with the name it trades under. Use this first when the user asks \"who is this merchant\".","inputSchema":{"type":"object","properties":{"text":{"type":"string","minLength":3,"maxLength":200,"description":"The line of text, unedited"}},"required":["text"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Identify a company from a line of text","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"check_website","title":"Who is behind a website","description":"Give a domain, a URL or an e-mail address of a Portuguese business. Returns the company behind the website and how that was established, whether that company is active and on a public debtor list, and what the site shows: tax number, link to the complaints book (mandatory for sellers to consumers), online shop, payment methods. Use it before a purchase or a payment to an unfamiliar site. It reports facts and does not rate the site.","inputSchema":{"type":"object","properties":{"website":{"type":"string","minLength":4,"maxLength":200,"description":"Domain, URL or e-mail address, e.g. \"loja-exemplo.pt\""}},"required":["website"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Who is behind a website","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"search_companies","title":"Search companies","description":"Find Portuguese companies by name (3+ letters) or by 9-digit tax number (NIF/NIPC). Returns up to 20 matches with tax number, name, locality and whether the company is active.","inputSchema":{"type":"object","properties":{"query":{"type":"string","minLength":2,"maxLength":80,"description":"Company name, part of it, or a 9-digit tax number"},"limit":{"type":"integer","minimum":1,"maximum":20}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Search companies","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"get_company","title":"Get a company","description":"The record of one Portuguese company by tax number: what it does, the marks it has registered (often its trading name), whether it exists and the evidence for that, seat, contacts, verified website, public contracts, debtor-list status and registry acts by year.","inputSchema":{"type":"object","properties":{"tax_number":{"type":"string","description":"9-digit NIF/NIPC; spaces and a PT prefix are accepted"}},"required":["tax_number"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Get a company","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"list_companies","title":"List companies","description":"Active companies filtered by founding month (YYYY-MM), main activity code (5-digit CAE) and/or concelho, newest first. At least one filter is required; at most 50 results.","inputSchema":{"type":"object","properties":{"founded_in":{"type":"string","pattern":"^20\\d{2}-(0[1-9]|1[0-2])$","description":"Founding month, YYYY-MM"},"cae":{"type":"string","pattern":"^\\d{5}$","description":"5-digit CAE Rev.4 code of the main activity"},"municipality":{"type":"string","minLength":2,"maxLength":60,"description":"Concelho name, e.g. \"Braga\""},"limit":{"type":"integer","minimum":1,"maximum":50}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"List companies","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"count_companies","title":"Count companies","description":"How many companies the register copy holds for an activity code (CAE Rev.4, 2 to 5 digits: a shorter code counts everything below it), a concelho and/or a founding year or month. Returns counts by status with the date of the copy and the definitions used. Use this, not list_companies, to size a sector or compare places.","inputSchema":{"type":"object","properties":{"cae":{"type":"string","pattern":"^\\d{2,5}$","description":"CAE Rev.4 code or the start of one, e.g. \"56\" or \"56111\" (main activity only)"},"municipality":{"type":"string","minLength":2,"maxLength":60,"description":"Concelho name, e.g. \"Braga\""},"founded":{"type":"string","pattern":"^(19|20)\\d{2}(-(0[1-9]|1[0-2]))?$","description":"Founding year YYYY or month YYYY-MM"}},"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Count companies","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"search_cae","title":"Search activity codes","description":"Find Portuguese activity codes (CAE Rev.4) by words of the activity, e.g. \"restaurante\" or \"programação\", or by the start of a code. Searches titles and the official explanatory notes.","inputSchema":{"type":"object","properties":{"query":{"type":"string","minLength":2,"maxLength":80},"limit":{"type":"integer","minimum":1,"maximum":20}},"required":["query"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Search activity codes","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"get_cae","title":"Get an activity code","description":"What a CAE Rev.4 code covers and what it does not include (with the codes those activities belong to), from the official explanatory notes of INE. Accepts any level: a section letter or a 2- to 5-digit code.","inputSchema":{"type":"object","properties":{"code":{"type":"string","pattern":"^([A-V]|\\d{2,5})$","description":"Section letter A-V or a 2- to 5-digit code"}},"required":["code"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Get an activity code","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}},{"name":"validate_tax_number","title":"Validate a tax number","description":"Check whether a Portuguese tax number (NIF/NIPC) is well-formed by its check digit, and say what kind of taxpayer its first digit indicates. Does not say whether the number is assigned.","inputSchema":{"type":"object","properties":{"tax_number":{"type":"string"}},"required":["tax_number"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"},"annotations":{"title":"Validate a tax number","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"execution":{"taskSupport":"forbidden"}}],"resources":[],"prompts":[]}