debug-integracao

debug-integracao is an agent for Claude Code from tray-tecnologia/tray-api-ai-plugin. It costs 52 tokens per session (836 once invoked), scanned A, original, MIT.

Assistente para diagnosticar problemas em integrações com a API da Tray, como falhas de autenticação, tokens expirados, limites de pedidos e dados inválidos.

In plain words
What is it for?
Analisar erros 401 e 429, verificar tokens e estado da loja, tratar limites de requisições e investigar respostas inesperadas ou falhas de validação.
Why use it?
Relaciona respostas e códigos de erro com verificações e possíveis correções, evitando investigar cada problema sem orientação.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tray-api plugin — 36 skills, 3 commands, 5 agents, 1 MCP server shipped together

Good fit Analisar erros 401 e 429, verificar tokens e estado da loja, tratar limites de requisições e investigar respostas inesperadas ou falhas de validação.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tray-tecnologia/tray-api-ai-plugin/debug-integracao
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-plugin

Made for: Claude Code.

Or install tray-api, the plugin that ships this one along with the rest of its 36 skills, 3 commands, 5 agents, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for debug-integracao

README.md
[![agentmods](https://agentmods.dev/badge/agents/tray-tecnologia/tray-api-ai-plugin/debug-integracao.svg)](https://agentmods.dev/agents/tray-tecnologia/tray-api-ai-plugin/debug-integracao)
Your own site
<a href="https://agentmods.dev/agents/tray-tecnologia/tray-api-ai-plugin/debug-integracao"><img src="https://agentmods.dev/badge/agents/tray-tecnologia/tray-api-ai-plugin/debug-integracao.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 836 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00836
Opus 5 $0.00026 $0.00418
Sonnet 5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00084

Measured 7d ago against content hash 1267d03be414, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

debug-integracao scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/debug-integracao.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Você é um especialista em diagnóstico de problemas em integrações com a API da Tray.

1. Erros de Autenticação (401)

Códigos de erro de token

Código Situação Solução
1000 Token expirado, loja ativa Renovar via GET /auth?refresh_token={token}
1001 Token expirado, loja bloqueada Verificar status com o lojista
1002 Token expirado, loja inativa Verificar ativação da loja
1003 Token expirado, loja cancelada Loja não está mais disponível
1099 Token inválido (formato incorreto ou corrompido) Verificar o valor do token e re-autenticar

Nota: O código 1004 não existe na API da Tray — foi confirmado via testes reais. O código retornado para tokens inválidos é 1099. Consulte o skill tray-autorizacao para a lista completa de error_codes.

Verificações comuns

  • O access_token está sendo passado como query parameter? (?access_token=xxx)
  • O token expirou? (expira em 3 horas)
  • O refresh_token expirou? (expira em 30 dias — requer nova autorização completa)
  • A loja está ativa?

2. Limite de Requisições (429)

Limite Valor
Curto prazo 180 requisições por minuto
Diário (padrão) 10.000 por dia
Diário (corporate) 50.000 por dia

Solução

  • Implementar backoff exponencial: 1s → 2s → 4s → 8s → 16s
  • Agrupar operações em lotes com intervalos
  • Usar paginação adequada (máximo 50 por requisição)
  • Verificar se há loops infinitos ou chamadas desnecessárias

3. Erros de Validação (400)

Causas comuns

  • Campos obrigatórios ausentes
  • Formato de data incorreto (deve ser YYYY-MM-DD)
  • CPF/CNPJ inválido
  • EAN com formato incorreto
  • JSON mal formado ou não envolvido na chave do recurso ({"Product": {...}})
  • Tipo de dado incorreto (string onde espera number)

Verificação

  • Confirme que o body JSON está envolvido na chave correta
  • Valide CPF/CNPJ localmente antes de enviar
  • Verifique limites de caracteres dos campos

4. Recurso Não Encontrado (404)

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 84 lines · 52 tokens per session scan A 1267d03be414

Subscribe to this mod's changes

debug-integracao is an agent published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 26d ago), licensed MIT. It adds 52 tokens to every session and 836 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

megalinter-runner

Run MegaLinter locally with npx mega-linter-runner (full flavor run or standalone single-linter image), digest the reports, and return only a compact error list. Use to keep verbose linter output out of the main context. Runs and reports only — never fixes source files.

ulises-jeremias/agent-toolkit · 65 tokens

megalinter-fixer

Fix the errors reported by ONE MegaLinter linter, following the linter's fix guide. Spawned by the megalinter-fix skill, one instance per failing linter, so several linters can be fixed in parallel. Edits source files but never commits, pushes, or disables anything (linters, rules, inline suppressions) — disables are…

ulises-jeremias/agent-toolkit · 87 tokens

megalinter-watcher

Watch a MegaLinter CI job (GitHub Actions, GitLab CI, Azure Pipelines or Bitbucket Pipelines) until completion, download its logs, and return only the parsed lint error list. Use to keep large CI logs out of the main context. Observes only — never fixes, edits or pushes.

ulises-jeremias/agent-toolkit · 70 tokens

helius-integration-specialist

Specialist agent for Helius + Solana integrations — queries live blockchain data, sends transactions via Sender, sets up webhooks, streams real-time data, and routes to domain-specific skills for trading, frontend development, and protocol research.

helius-labs/core-ai · 54 tokens

backend-debugging-agent

Agent "backend-debugging-agent" from girijashankarj/cursor-handbook, covering debugging agent, invocation, scope, expertise and when to use.

girijashankarj/cursor-handbook · 0 tokens

backend-performance-agent

/performance-agent or @performance-agent.

girijashankarj/cursor-handbook · 0 tokens