Skip to main content
Glama
alanpcf

brasil-data-mcp

consultar_isbn

Query book metadata by ISBN: returns title, author, publisher, year, pages, language, subject, and synopsis when available. Supports ISBN-10 and ISBN-13 with or without hyphens.

Instructions

Consulta metadados de um livro pelo ISBN via BrasilAPI (agrega CBL, Mercado Editorial, Open Library e Google Books). Retorna em JSON: título, subtítulo, autores, editora, ano, idioma, número de páginas, assunto/categoria, sinopse (quando disponível) e fonte do dado. Use quando o usuário fornecer um ISBN e quiser saber sobre o livro (título, autor, editora, ano). NÃO use para: buscar livro por título ou autor (a operação é só ISBN → metadados), validar formato sem consultar (rejeite local se não bater 10/13 dígitos), ou consultar preço/disponibilidade. Aceita ISBN-10 e ISBN-13, com ou sem hífens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codigoYesISBN do livro, 10 ou 13 dígitos. Aceita com ou sem hífens. Ex: '978-85-325-3080-2' ou '9788532530802'.
Behavior5/5

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

The description discloses it is a read operation returning JSON with specific fields (título, subtítulo, autores, etc.), aggregates multiple sources, and performs local validation of ISBN length. No annotations are present, so the description fully covers behavior.

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

Conciseness5/5

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

The description is compact (4 sentences) and front-loaded with the core purpose. Every sentence adds value: function, return info, usage cases, and exclusions. No redundancy.

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?

For a single-parameter tool without annotations or output schema, the description covers purpose, usage, return details, and validation. It lacks explicit error handling (e.g., ISBN not found), but the coverage is otherwise comprehensive.

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

Parameters4/5

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

The input schema already fully describes the parameter 'codigo' (type, format, example) with 100% coverage. The description adds further context about ISBN-10/ISBN-13 acceptance and validation, enhancing understanding beyond the schema.

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?

The description clearly states the verb ('Consulta'), the resource ('metadados de um livro pelo ISBN'), and the sources (BrasilAPI, CBL, etc.), distinguishing it from sibling tools (consultar_cep, consultar_cnpj, etc.) which focus on other types of queries.

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

Usage Guidelines5/5

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

Explicit when-to-use ('quando o usuário fornecer um ISBN e quiser saber sobre o livro') and when-not-to-use (search by title/author, format validation, price/availability) are provided, guiding the agent effectively.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alanpcf/brasil-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server