Skip to main content
Glama

kya_revoke

Destructive

Free. The company revokes the credential at once (e-CNPJ-signed request). Revocations are listed at /v1/revocations.

Input Schema

NameRequiredDescriptionDefault
reasonNo
signed_textYesExactly "KYA Brasil: revoke <credential_id>" followed by a newline and a nonce of your choice.
credential_idYescredential_id returned by kya_register.
ecnpj_signatureYesCMS/PKCS#7 SignedData (detached, base64 DER) of signed_text with the company's e-CNPJ.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation risk is known. The description adds genuinely useful context beyond that: the call is free, it takes effect at once (irreversible), and it requires an e-CNPJ-signed request, which signals an authentication prerequisite the annotations do not 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?

Three short sentences with the cost and the core action front-loaded, and no filler. Every clause carries 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 destructive, no-output-schema tool, the description covers cost, immediacy, auth requirement, and where revocations can be listed. It omits what the caller receives on success/failure and whether reason is optional, leaving modest gaps.

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 75% and the schema itself explains signed_text and credential_id in detail. The description contributes the fact that the request is e-CNPJ-signed, tying to ecnpj_signature, but adds nothing about reason or the exact signed_text format beyond the schema. Baseline 3 is appropriate when the schema does most of the work.

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 (revokes) and resource (the credential), plus the immediacy of the effect and the signing requirement. It is distinguishable from kya_revocations (a listing tool) and kya_renew, but it does not explicitly name or contrast those siblings.

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

Usage Guidelines3/5

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

The phrase 'the company revokes the credential' implies the scenario (a company invalidating a credential it controls), and the mention of /v1/revocations hints at the read-side counterpart. There is no explicit when-not-to-use guidance or named alternative such as kya_renew or kya_revocations.

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.

Resources