Skip to main content
Glama

Investigar falha de etiqueta

diagnose_label_issue
Read-only

Consulta tentativas deste MCP na loja autenticada pelo código de atendimento ou lista as 10 mais recentes. Inclui Wix/Shopify somente por vínculo configurado no servidor; use source e orderId. Não trate ausência de registro como ausência de emissão. Não crie outra etiqueta para resolver um PDF pendente.

Input Schema

NameRequiredDescriptionDefault
sourceNoOrigem da emissão. Apps exigem vínculo explícito configurado pelo operador.
orderIdNoID interno do pedido para filtrar tentativas dos apps.
instanceIdNoIgnorado no servidor autenticado; a credencial determina a loja.
supportCodeNoCódigo de atendimento. Sem código, lista até 10 tentativas recentes para identificar a correta.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / supportCode / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly=true, destructive=false and openWorld=false, but the description adds meaningful behavioral context beyond them: results are scoped to the authenticated store, Wix/Shopify data appears only when a server-side link is configured, and knowledge is limited to this MCP's own attempts. The caveats about interpreting empty results and not creating duplicate labels are exactly the kind of operational nuance annotations cannot convey.

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?

Four short sentences, front-loaded with the primary lookup behavior and followed by important constraints. Every sentence carries actionable information; none is filler or tautological.

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?

With annotations covering safety and no output schema, the description still explains lookup modes, scoping constraints and interpretation caveats. It does not describe what an attempt record contains or how results are formatted, which is a minor gap for a diagnostic listing tool but not enough to prevent correct invocation.

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 four parameters, including the default of listing 10 recent attempts when supportCode is omitted and that instanceId is ignored server-side. The description reinforces source and orderId usage but adds little syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource: querying label-issuance attempts for the authenticated store, either by support code or by listing the 10 most recent. It distinguishes itself from generate_label and recover_label_pdf through the explicit warning not to create another label, though it does not name the sibling tools directly.

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?

Gives clear operational routing: use supportCode to look up by service code, otherwise list up to 10 recent attempts, and use source plus orderId for Wix/Shopify. It also states when not to act — do not interpret an absent record as an absent issuance and do not create another label to fix a pending PDF — which explicitly steers agents away from generate_label and related siblings.

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.