Skip to main content
Glama

Contato por CPF/CNPJ

astrea_find_contact_by_document
Read-only

Find a contact by CPF/CNPJ document to retrieve the matching record and details from an Astrea legal-practice account.

Instructions

Procura contato pelo CPF/CNPJ.

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": {
      "document": "<document>"
    },
    "name": "astrea_find_contact_by_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description's only job is to add context such as exact-vs-partial matching, single-vs-multiple results, or not-found behavior. It adds none of these; the single sentence merely restates the name in Portuguese.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no filler, but the brevity comes from under-specification rather than disciplined editing. Appropriate size for the definition type, insufficient content.

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

Completeness2/5

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

For a single-parameter, read-only lookup with no output schema, the description should at minimum indicate result cardinality and not-found behavior, and ideally the accepted document format. None of that is present, so an agent cannot predict what it gets back from a call.

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 0%, so the description must carry the parameter meaning, and it does partially: it tells the agent the field is a CPF/CNPJ tax identifier rather than an arbitrary document, which the bare schema ('string, minLength 11') does not convey. It still omits whether punctuation or mask should be included and how CNPJ's 14 digits are handled, leaving a real ambiguity for a required parameter.

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

Purpose3/5

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

States a verb ('Procura') and resource ('contato') plus the lookup key ('CPF/CNPJ'), which is more specific than the title alone. However, it never distinguishes this lookup-by-document from the sibling astrea_get_contact or explains how the two differ, so an agent must guess which to select.

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

Usage Guidelines2/5

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

No when-to-use guidance, no mention of the alternative lookup tool, and no statement of what to do when the document is unknown or the contact does not exist. The agent is left to infer the entire selection context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools