Skip to main content
Glama

Anuário

Identify a company from a line of text

identify_company
Read-onlyIdempotent

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".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "identify_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe line of text, unedited

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the two-stage resolution strategy and the fact that the returned entity is the trading name. It does not say what happens when neither the tax number nor the word search matches, which is the main remaining behavioral gap.

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?

The purpose and the 'use this first' trigger are front-loaded, and the examples earn their space by showing two distinct input shapes (tax-number-prefixed vs. free text). Slightly dense with quoted examples, but no sentence is redundant.

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

Completeness4/5

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

With no output schema, the description carries the burden of describing the return value, and it does ('returns the company with the name it trades under'). It is complete for a one-parameter lookup, with only the no-match outcome left unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is already documented as the unedited line of text. The description reinforces this with two realistic invoice/bank-statement samples, which is helpful context but mostly illustrative rather than adding new constraint semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('identify/find a company from a line of text'), describes the internal strategy (tax number first, then word search), and notes it returns the trading name. The example lines make the input space unambiguous, and it is clearly distinguishable from siblings like get_company or validate_tax_number.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('Use this first when the user asks "who is this merchant"'), which establishes ordering against other lookup tools. It stops short of naming a when-not condition or pointing at get_company/validate_tax_number for the cases this tool does not cover.

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.

Resources