Skip to main content
Glama

SQLGuard — Execution Certificate Firewall

Mandate Bind (AP2 Intent x Ed25519)

sqlguard_bind
Read-onlyIdempotent

ABMP BIND: pay Exact USDC once via POST /v1/bind. Hashes AP2-style Intent Mandate text into the Ed25519 Execution Certificate (mandate_hash). Then free sqlguard_gate before execute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesExact mutating SQL to authorize under the mandate
mandateYesAP2-style Intent Mandate — what the human authorized this agent to do
agent_idYesAgent or wallet id for the bind receipt
schema_ddlYesCREATE TABLE … schema snapshot

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceNo
paymentNo
productNo
endpointNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

C2.6/5.0
Behavior1/5

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

Annotation Contradiction: the description says 'pay Exact USDC once' and 'free sqlguard_gate,' both of which imply state-changing side effects, while annotations declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. At minimum, 'pay once' is misleading next to readOnlyHint=true, and 'free the gate' suggests a state transition. The description not only fails to add clarifiying behavioral context but actively contradicts the structured metadata.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, with no filler sentences. But it compresses too many unexplained acronyms (ABMP, AP2, Ed25519) into a small space, making it dense rather than truly concise. The sentence about freeing sqlguard_gate is useful but introduces a sibling-tool dependency without explaining it.

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

Completeness2/5

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

This is a complex tool with four required parameters, a payment side effect, a hashing step, and an ordering requirement involving sqlguard_gate. An output schema exists, so return values are covered, but the description stll does not explain the ABMP/AP2 ceremony, the meaning of 'pay Exact USDC once' in an apparetly read-only tool, prerequisites, or failure modes. The annotation contradiction alone makes the context materially incomplete for safe 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 description coverage is 100%, so the baseline is 3. The description adds a little extra meaning by explaining that the mandate text is hashed into the Ed25519 certificate (mandate_hash) and that sql is the mutating statement to authorize, but these are marginal additions over the schema descriptions. It does not clarify formats, required syntax, or the relationship between schema_ddl and sql beyond what the schema already says.

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?

The description names a specific action ('pay Exact USDC once via POST /v1/bind'), a resource (ABMP BIND), and a process (hashing the mandate into an Ed25519 execution ceertificate). It distinguishes itself from sibling tools by mentioning 'free sulguard_gate before execute,' which implies a separate gate step. However, heavy acronyms like ABMP and AP2 are left unexplaind, and the ter 'bind' remains somewhat domain-speciic, so it is clear only to someone already familiar with the system.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative tool is named. The phrase 'Then free sqlguard_gate before execute' gives a sequencing hint (bind must precede gate/execute) but does not explain why this tool is chosen over sibling tools such as sqlguard_validate, sqlguard_cert, or sqlguard_gate. The usage context is only implied, not stated.

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.

TDQS

B3.1/5.0
Disambiguation1/5

Multiple tools occupy the same job: challenge and pilot both sell the $100/7-day PASS; buy/catalog/cert/session/workday/validate are all legacy prepaid paths; handshake/protocol/require/sdk all provide onboarding/compliance guidance. Descriptions add PRIMARY/LEGACY labels, but an agent still has to parse heavy cross-references to avoid picking the wrong payment or authorization tool.

Naming Consistency4/5

All tool names share the consistent sqlguard_ prefix and lower_snake_case style, and each name maps to a recognizable concept. However, the set mixes noun labels (denials, gravity, session) with verb labels (bind, buy, verify), so it is not a strict verb_noun API convention.

Tool Count3/5

24 tools sits at the top of the 'heavy but borderline' range. Many could be collapsed because the legacy prepaid paths (session, workday, cert, buy, catalog, validate) are explicitly marked OFF TABLE for the primary wealth path, leaving redundant surface area.

Completeness4/5

The core lifecycle is well covered: handshake/onboarding, challenge/pilot unlock, bind/gate/verify pre-execution checks, denials inventory, effects verification, and client status. Minor gaps exist only around explicit invoice/refund/revocation tooling, but those appear to be handled externally or by expiry.