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.
git clone --depth 1 https://github.com/tray-tecnologia/tray-api-ai-pluginWrote 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.
[](https://agentmods.dev/commands/tray-tecnologia/tray-api-ai-plugin/validar-integracao)<a href="https://agentmods.dev/commands/tray-tecnologia/tray-api-ai-plugin/validar-integracao"><img src="https://agentmods.dev/badge/commands/tray-tecnologia/tray-api-ai-plugin/validar-integracao/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/tray-tecnologia/tray-api-ai-plugin/validar-integracao"><img src="https://agentmods.dev/badge/commands/tray-tecnologia/tray-api-ai-plugin/validar-integracao.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.00674 |
| Opus 5 | $0.00011 | $0.00337 |
| Sonnet 5 | $0.00004 | $0.00135 |
| Haiku 4.5 | $0.00002 | $0.00067 |
Grade A, and why
tray-validar-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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Validação de Integração — Tray
Analise o código do projeto atual e verifique os itens abaixo:
Checklist de Validação
1. Autenticação OAuth
- Fluxo de 3 etapas implementado (redirecionamento → callback → troca de token)
-
consumer_keyeconsumer_secretem variáveis de ambiente (nunca hardcoded) -
access_tokenarmazenado de forma segura
2. Renovação de Token
- Renovação automática antes de 3 horas (ex: a cada 2h30)
- Uso de
GET /auth?refresh_token={token}para renovar - Tratamento de
refresh_tokenexpirado (30 dias → nova autorização completa)
3. Tratamento de Erros
- Código 1000 — token expirado, loja ativa → renovar automaticamente
- Código 1001 — loja bloqueada → notificar administrador
- Código 1002 — loja inativa → verificar ativação
- Código 1003 — loja cancelada → suspender operações
- Código 1004 — loja suspensa → verificar com suporte
- Código 400 — validação de campos antes do envio
- Código 401 — renovação automática de token
- Código 404 — tratamento de recurso não encontrado
- Código 429 — backoff exponencial para rate limit
4. Limites de Requisições
- Controle de 180 requisições por minuto
- Controle de 10.000 requisições diárias (50.000 corporate)
- Backoff exponencial implementado (1s → 2s → 4s → 8s...)
- Operações em lote com intervalos
5. Paginação
- Parâmetro
limitdefinido (máximo 50, padrão 30) - Iteração correta por todas as páginas quando necessário
- Uso do campo
totalda resposta para controle
6. Formato de Dados
- Body JSON envolvido na chave do recurso (
{"Product": {...}}) - Datas no formato
YYYY-MM-DD - Timestamps no formato
YYYY-MM-DD HH:MM:SS - CPF/CNPJ validados antes do envio
7. Segurança
- Tokens em variáveis de ambiente (não no código-fonte)
-
consumer_secretprotegido - HTTPS em todas as chamadas
- Webhook validando
seller_idrecebido
8. Webhooks (se aplicável)
- Endpoint retornando HTTP 200 rapidamente
- Processamento assíncrono (fila)
- Idempotência (tratar duplicatas)
- Logs de webhooks recebidos
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.
- 9d ago First seen · 64 lines · 22 tokens per session scan A bec39592cf83
tray-validar-integracao is a command published in the GitHub repository tray-tecnologia/tray-api-ai-plugin (15 stars, last pushed 27d ago), licensed MIT. It adds 22 tokens to every session and 674 once invoked, about $0.0001 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.
Other commands, from other repositories
setup-x-api.es
Command "setup-x-api.es" from minicoohei/ai-agent-camp, covering configuración de x (twitter) api, step 0: verificar progreso de configuración, lo que hará en esta sesión, verificación de preparación and step 1: abrir x developer portal en el navegador.
setup-x-api
A guided setup command for the X API, which lets software connect to X, formerly known as Twitter.
setup-typefully.en
Command "setup-typefully.en" from minicoohei/ai-agent-camp, covering typefully api setup, step 0: check setup progress, what you'll do in this session, readiness check and step 1: open typefully in the browser.
setup-typefully.es
Command "setup-typefully.es" from minicoohei/ai-agent-camp, covering configuración de typefully api, step 0: verificar progreso de configuración, lo que hará en esta sesión, verificación de preparación and step 1: abrir typefully en el navegador.
setup-typefully
A guided setup command for the Typefully API, which lets software connect to the Typefully publishing service.
setup-x-api.en
Command "setup-x-api.en" from minicoohei/ai-agent-camp, covering x (twitter) api setup, step 0: check setup progress, what you'll do in this session, readiness check and step 1: open x developer portal in browser.