Skip to main content
Glama

Mestre Prático • Brazil Retail & Commodities MCP

brazil_contract_intent_a2a

Idempotent

Issues and verifies cryptographically signed Machine-to-Machine (A2A) Economic Intent Protocols with ES256 (ECDSA P-256) digital signatures (RFC 7515) and canonical SHA-256 digests (RFC 8785). Enables autonomous enterprise agents (fleet management bots, hospital procurement systems, wholesale supply coordinators) to formalize procurement intent parameters with official ANP/CMED/Varejo e Órgãos Reguladores regulatory benchmarks. Verifiable via https://mestrepratico.com.br/.well-known/jwks.json and /api/a2a/verify. Includes automated sandbox evaluation mode for test agents. When to use: When autonomous agents need to negotiate and document formal procurement intent parameters with verifiable cryptographic provenance. When NOT to use: For simple read-only price checks (use brazil_fuel_prices, brazil_grocery_basket, or brazil_pharma_medicines).

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": {
      "tipo_operacao": "<tipo_operacao>",
      "uf": "<uf>"
    },
    "name": "brazil_contract_intent_a2a"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufYesTwo-letter Brazilian state code where procurement will take place (e.g., 'rj', 'sp', 'mg', 'ba', 'pe'). Defaults to 'rj'.rj
actionNoAction to perform: 'issue_intent' to generate a signed intent protocol, or 'verify_intent' to validate an existing protocol ID or hash. Defaults to 'issue_intent'.issue_intent
cidadeNoTarget Brazilian municipality or distribution hub (e.g., 'Cabo Frio', 'Sao Paulo', 'Recife', 'Rio de Janeiro'). Defaults to 'Cabo Frio'.Cabo Frio
protocolo_idNoExisting A2A protocol ID or SHA-256 hash to verify (required when action is 'verify_intent').
tipo_operacaoYesEconomic procurement category for the machine intent contract: 'abastecimento_frota' (fleet refueling), 'cesta_basica_atacado' (wholesale food baskets), 'dispensacao_farmaceutica' (pharmaceutical supply), 'auditoria_tributaria' (tax audit certification). Defaults to 'abastecimento_frota'.abastecimento_frota
contraparte_idNoIdentifier or role of the intended commercial partner or counterparty network. Optional.Rede Revendedora Conveniada / Mercado Aberto
item_especificoNoSpecific commodity code, fuel type (e.g., 'diesel_s10', 'gasolina'), or active pharmaceutical ingredient (e.g., 'losartana'). Defaults to 'diesel_s10'.diesel_s10
volume_estimadoNoEstimated procurement volume in liters (for fuels), units (for food baskets), or packages (for medicines). Defaults to 500.
agente_solicitante_idNoUnique identifier of the requesting partner AI agent or automated bot (identifers containing TEST/AUDIT trigger sandbox mode). Defaults to 'FleetBot-Logistica-01'.FleetBot-Logistica-01

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / action
      Added value: +{
      +  "default": "issue_intent",
      +  "description": "Action to perform: 'issue_intent' to generate a signed intent protocol, or 'verify_intent' to validate an existing protocol ID or hash. Defaults to 'issue_intent'.",
      +  "enum": [
      +    "issue_intent",
      +    "verify_intent"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / agente_solicitante_id / description
      Previous value: -"Unique identifier or public key of the requesting partner AI agent or automated fleet bot. Defaults to 'FleetBot-Logistica-01'."New value: +"Unique identifier of the requesting partner AI agent or automated bot (identifers containing TEST/AUDIT trigger sandbox mode). Defaults to 'FleetBot-Logistica-01'."
    • addedInput schema / properties / contraparte_id
      Added value: +{
      +  "default": "Rede Revendedora Conveniada / Mercado Aberto",
      +  "description": "Identifier or role of the intended commercial partner or counterparty network. Optional.",
      +  "type": "string"
      +}
    • addedInput schema / properties / protocolo_id
      Added value: +{
      +  "default": "",
      +  "description": "Existing A2A protocol ID or SHA-256 hash to verify (required when action is 'verify_intent').",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedInput schema / properties / uf / enum
      Removed value: -[
      -  "ac",
      -  "al",
      -  "am",
      -  "ap",
      -  "ba",
      -  "ce",
      -  "df",
      -  "es",
      -  "go",
      -  "ma",
      -  "mg",
      -  "ms",
      -  "mt",
      -  "pa",
      -  "pb",
      -  "pe",
      -  "pi",
      -  "pr",
      -  "rj",
      -  "rn",
      -  "ro",
      -  "rr",
      -  "rs",
      -  "sc",
      -  "se",
      -  "sp",
      -  "to"
      -]
    • removedInput schema / properties / volume_estimado / minimum
      Removed value: -1
  3. Changed2 schema fields changed
    • addedInput schema / properties / uf / enum
      Added value: +[
      +  "ac",
      +  "al",
      +  "am",
      +  "ap",
      +  "ba",
      +  "ce",
      +  "df",
      +  "es",
      +  "go",
      +  "ma",
      +  "mg",
      +  "ms",
      +  "mt",
      +  "pa",
      +  "pb",
      +  "pe",
      +  "pi",
      +  "pr",
      +  "rj",
      +  "rn",
      +  "ro",
      +  "rr",
      +  "rs",
      +  "sc",
      +  "se",
      +  "sp",
      +  "to"
      +]
    • addedInput schema / properties / volume_estimado / minimum
      Added value: +1
  4. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare non-readOnly, openWorld, idempotent and non-destructive, so the description isn't carrying the safety burden alone. It adds real context beyond them: ES256/RFC 7515 signing, RFC 8785 canonical digests, a JWKS discovery URL, a verification endpoint, and an automated sandbox mode triggered by TEST/AUDIT requester identifiers. It does not state whether issued intents are persisted, how long they remain verifiable, or any rate limits.

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?

Structure is sound: purpose and cryptographic mechanics are front-loaded, usage guidance is at the end. It is dense with certification names and parenthetical examples that could be trimmed, but every sentence still contributes capability or routing information.

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

Completeness3/5

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

For a nine-parameter, non-read-only tool with no output schema, the description explains how a protocol can be externally verified but never says what an issued intent or a verify response actually contains (protocol ID, digest, signature envelope, benchmark fields). That return-shape gap is the main missing piece given no output schema exists.

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 description coverage is 100%, so every parameter, including both enums and the action switch, is already documented in the schema. The description adds the sandbox-trigger semantics but that detail is also present in the agente_solicitante_id schema description, leaving the baseline of 3 appropriate.

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 first sentence names specific verbs (issues, verifies) and a specific resource (cryptographically signed A2A Economic Intent Protocols) with the signing algorithm and digest standards named. It is clearly distinguishable from the sibling read-only price tools, which are explicitly called out later.

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?

The description carries explicit 'When to use' and 'When NOT to use' sections, and the negative case names three concrete alternatives (brazil_fuel_prices, brazil_grocery_basket, brazil_pharma_medicines). The positive case largely restates the purpose rather than adding a decision rule, so it falls short of a full 5.

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.