Skip to main content
Glama
Anka Ontologia de Mercado

Anka Ontologia de Mercado

Official
by Anka-Tech

List relations of a concept

list_relations
Read-only

Lists outgoing, incoming, or both relations for a Brazilian financial-market concept by id or label, with paging, type filtering, and statuses for ambiguous or unknown terms.

Instructions

Relations of one concept of the Brazilian financial market, looked up by id or by exact label or synonym: outgoing, incoming or both, optionally of a single relation type, one page at a time, with the total and how many non-current relations were left out. A label shared by several concepts returns an ambiguous status with the candidates, an unknown term a not_found status with what the base covers, and a relation type outside the catalog an unknown_predicate status with the valid names. The content is written in Brazilian Portuguese.

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": {
      "concept": "<concept>"
    },
    "name": "list_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of relations.
offsetNoNumber of relations skipped before the page.
conceptYesConcept id, or its exact preferred label or synonym.
directionNo`out`: the concept is the subject; `in`: it is the object; `both`: either.both
predicateNoRelation type name, as in the catalog.
include_historyNoWhether retired concepts, revoked norms and historical relations are included.

Output Schema

NameRequiredDescriptionDefault
limitNo
queryNo
totalNo
offsetNo
statusYes
conceptNo
coverageNo
directionNo
predicateNo
relationsNo
candidatesNo
next_offsetNo
valid_predicatesNo
omitted_non_currentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses pagination semantics (one page, total, count of non-current relations excluded) and three distinct failure modes with their payloads: `ambiguous` with candidates, `not_found` with base coverage, `unknown_predicate` with valid names. It also notes the content is in Brazilian Portuguese, which matters for output interpretation. Only minor gaps remain, since the output schema already covers the success shape.

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 core capability and scope are front-loaded in the first clause, and the second sentence packs the error statuses efficiently. The single long opening sentence is dense with colons and parentheticals, but no sentence is wasted.

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

Completeness5/5

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

With an output schema, full schema coverage, and read-only annotations already in place, the description supplies exactly the missing pieces: pagination and total counts, what gets excluded from the current view, error statuses, and the output language. An agent has everything needed to call this correctly.

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%, so the schema already documents all six parameters, making 3 the baseline. The description adds some meaning by tying `include_history` to the count of 'non-current relations left out' and by framing `predicate` as a single catalog relation type, but it does not clarify the enum values or the anyOf/null predicate handling beyond the schema.

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

Purpose4/5

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

The description names a specific resource and scope: relations of a single Brazilian financial market concept, resolved by id or exact label/synonym, with direction and predicate filters. This clearly separates it from get_concept (a single concept's data) and search_concepts (discovery), though it never names those siblings explicitly, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage is implied through the enumerated capabilities (outgoing, incoming, or both; optional single relation type; one page at a time), which tells an agent what the tool can do but not when to prefer it over get_concept or search_concepts. No explicit when-to-use or when-not-to-use guidance is given.

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