Skip to main content
Glama

brain_restore_neon_schema

Prepare this operator's database schema again, ignoring the breadcrumb.

Diagnostic / recovery tool for when Neon keeps answering 4xx and the operator suspects a table or grant is missing. Every statement is idempotent, so a clean re-run is harmless; the breadcrumb is rewritten at the end. Returns one step per concern, with Neon's own error text inline for any that failed.

RESTRICTED to operator — requires proof (nsec-signed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpop_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does so well: it declares idempotency ('every statement is idempotent, so a clean re-run is harmless'), the breadcrumb side effect, the per-concern return shape with inline error text, and the operator-only nsec-signed auth requirement. This is strong behavioral disclosure for a privileged mutation tool.

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

Conciseness4/5

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

Front-loads the action ('Prepare this operator's database schema again'), then layers diagnosis, safety, return shape and auth. Each sentence adds information, though 'ignoring the breadcrumb' is slightly cryptic and could be clarified without loss.

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?

An output schema exists, so return values needn't be spelled out (and the description still summarizes them). Usage, safety profile, auth restriction and side effects are all covered, which is enough for an agent to call this privileged recovery tool correctly. The only real gap is the undocumented parameter.

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?

There is one parameter (dpop_token) and schema description coverage is 0%, so the description should compensate. It mentions that proof is nsec-signed, which relates loosely to the token, but it never explains what dpop_token is, its format, or that it may be empty by default. Partial compensation only.

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+resource: re-prepare the operator's database schema, and explicitly frames it as a diagnostic/recovery tool. No sibling tool performs schema restoration, so differentiation is implicit rather than named. Terms like 'the breadcrumb' are jargon-y but the core purpose is unambiguous.

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

Usage Guidelines4/5

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

Gives a concrete triggering condition: when Neon keeps answering 4xx and a table or grant is suspected missing. It also reassures that a clean re-run is harmless, which shapes when it is safe to invoke. It does not name an alternative tool to try first, which keeps it short of a 5.

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.