Skip to main content
Glama

excalibur_refine_post_region

Refine a flagged region of a post with an LLM — server-side.

The operator's LLM key stays in the vault and never leaves the server. Send the flagged region, the surrounding full_text, an optional instruction (what to change), and the editor's voice profile + bans (JSON array or comma list of banned constructions). Returns {"success": true, "suggestions": [...3 strings...]}.

Paid: the AI cost is metered as a tollbooth fare. The fare is refunded if no LLM key is configured or the upstream call returns nothing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bansNoBanned constructions — JSON array or comma-separated (optional).
npubNoRequired. Your Nostr public key (npub1...) for credit billing.
voiceNoVoice-profile text fed to the model (optional).
regionYesThe flagged span to rewrite.
full_textNoThe whole tweet, for context.
dpop_tokenNo
instructionNoWhat the editor wants changed (optional).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses server-side processing, that the LLM key never leaves the vault, the metered billing as a tollbooth fare, and refund conditions (no LLM key or empty upstream response). It also clearly states that the tool returns suggestions rather than applying edits directly, which is essential behavioral context.

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?

The description is concise and front-loaded with the core purpose. It uses three short paragraphs: what it does, how to use it, and billing/refund policy. Every sentence contributes useful information with no filler. It could be slightly tighter, but it is appropriately sized for a paid, multi-parameter tool.

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?

Given the tool's complexity (paid, 7 parameters, output schema), the description covers the key aspects: input semantics, return value with exact structure, and billing implications. It leaves some gaps, such as the purpose of dpop_token and explicit error handling, but the output schema and sibling context fill some of these. Overall it is complete enough for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 86%, with most parameters described in the schema. The description adds cohesion by explaining how region, full_text, instruction, voice, and bans fit together in the workflow. It also clarifies the bans format and the billing role of npub. While the schema already provides parameter-level details, the description adds cross-parameter context that helps the agent construct a correct request.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb-object: 'Refine a flagged region of a post with an LLM.' It specifies the exact scope (flagged region) and method (LLM, server-side), distinguishing it from siblings like update_post or create_post. It also states the return format, reinforcing the tool's purpose as a suggestion generator rather than a direct editor.

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?

The description clearly implies when to use this tool: when a post region is flagged and needs LLM-based refinement. It explains what inputs to send and what to expect in return. However, it does not explicitly mention alternatives or exclusions, such as 'for full post edits use update_post' or 'when no LLM key is configured, use something else.' The context is clear but not exhaustive.

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

A3.6/5.0
Disambiguation5/5

Each tool targets a distinct operation and domain (account, posts, coupons, credentials, scheduling, oracle, etc.), with clear differentiation even for similar-sounding tools like check_balance vs check_authority_balance or list_coupons vs list_my_coupons. There is no ambiguity.

Naming Consistency5/5

All tools follow a consistent verb_noun snake_case pattern (e.g., create_post, delete_coupon, list_posts), with no mixing of styles. The excalibur_ prefix is uniform.

Tool Count1/5

With 72 tools, the server far exceeds the typical well-scoped range (3–15). While the functionality is broad, the sheer number feels excessive for a single MCP server, leading to an extreme mismatch.

Completeness5/5

The tool surface covers the full lifecycle for core domains: CRUD for posts, snippets, coupons, credentials; complete flows for OAuth, npub proof, scheduling, notarization, and payments. No obvious gaps are present.