Skip to main content
Glama
PQS - Prompt Quality Score

PQS - Prompt Quality Score

Official

GitHub Marketplace pqs-mcp-server MCP server

PQS MCPサーバー

世界初のAIプロンプト品質スコア(MCPサーバーとして提供)。

LLMプロンプトがモデルに送信される前に、スコアリング、最適化、比較を行います。PEEM、RAGAS、G-Eval、MT-Benchフレームワークに基づいて構築されています。

インストール

Claude Desktop

設定ファイル(~/Library/Application Support/Claude/claude_desktop_config.json)に追加してください:

{
  "mcpServers": {
    "pqs": {
      "command": "npx",
      "args": ["pqs-mcp-server"]
    }
  }
}

Smithery

smithery mcp add onchaintel/pqs

Related MCP server: aipaygen-mcp

ツール

score_prompt(無料 — APIキー不要)

プロンプトがモデルに送信される前にスコアリングします。評価A〜F、40点満点のスコア、およびパーセンタイルを返します。

出力例:

{
  "pqs_version": "1.0",
  "prompt": "analyze this wallet",
  "vertical": "crypto",
  "score": 8,
  "out_of": 40,
  "grade": "D",
  "upgrade": "Get full dimension breakdown at /api/score for $0.025 USDC via x402",
  "powered_by": "PQS — pqs.onchainintel.net"
}

optimize_prompt($0.025 USDC、x402経由)

プロンプトのスコアリングと最適化を行います。8つの次元の詳細な分析結果と最適化されたバージョンを返します。

要件: PQS APIキー(pqs.onchainintel.netで無料で取得可能)

compare_models($1.25 USDC、x402経由)

同じプロンプトでClaudeとGPT-4oを比較します。第三のモデルによって判定されます。勝者、スコア、推奨事項を返します。

要件: PQS APIキー(pqs.onchainintel.netで無料で取得可能)

業種

より正確なスコアリングのためにドメインコンテキストを指定してください:

  • software — ソフトウェアエンジニアリング、コード、デバッグ

  • content — コンテンツ作成、コピーライティング、ソーシャルメディア

  • business — ビジネス分析、財務、戦略

  • education — 教育、研究、学術論文

  • science — 科学研究、データ分析

  • crypto — 暗号資産取引、DeFi、オンチェーン分析

  • general — 汎用(デフォルト)

品質ゲートパターン

推論前の品質ゲートとしてPQSを使用します:

const score = await fetch("https://pqs.onchainintel.net/api/score/free", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ prompt: userPrompt, vertical: "software" })
});
const { score: pqsScore } = await score.json();
if (pqsScore < 28) throw new Error("Prompt quality too low — improve and retry");

評価がD以下(28/40未満)の場合、そのプロンプトは推論コストを無駄にする可能性があることを意味します。

開発者

John / OnChainIntel — @OnChainAIIntel
pqs.onchainintel.net

Available Tools

2 tools
optimize_promptAInspect

Rewrite a prompt to score higher on the PQS rubric, AND show before/after output comparisons so the user can see the impact. Returns the optimized prompt, the original PQS score, the optimized PQS score, and side-by-side sample outputs from a frontier model using both versions.

USE WHEN:

  • The user got a low score from score_prompt and asks how to improve.

  • The user explicitly asks to "improve" / "rewrite" / "fix" / "optimize" a prompt they pasted.

  • The user is dissatisfied with output quality from a previous prompt and asks how to get better results.

  • score_prompt returned a suggestion to invoke this tool.

DO NOT USE WHEN:

  • The user just asked for a score (use score_prompt only — don't double up).

  • The user wants you to write a new prompt from scratch (write it directly).

REQUIRES: A PQS API key from a Pro subscription ($19.99/month, 1,000 calls/mo, includes batch + A/B comparison). If the user has not provided one, the tool returns a clear subscription URL — pass that response to the user verbatim. Do not invent or guess API keys. There is no free trial of this tool; the user must subscribe before the first call.

COST: Counted against your Pro subscription's monthly call quota.

LATENCY: ~6-8 seconds.

Inputs: prompt (required), api_key.

score_promptAInspect

Score a prompt's quality across 8 dimensions BEFORE sending it to an expensive model. Returns a 0-80 score, an A-F grade, the per-dimension breakdown (clarity, specificity, context, constraints, output_format, role_definition, examples, cot_structure), and the weakest dimension.

USE WHEN:

  • The user is workshopping a prompt and asks "is this good?" / "will this work?" / "should I add more detail?"

  • The user is about to send a long or expensive prompt to GPT-4, Claude Opus, or any frontier model, especially in a batch or automation context where rework is costly.

  • The user mentions iterating on a prompt that produced poor output and wants to diagnose what's missing.

  • The user pastes a prompt and asks for feedback on it.

DO NOT USE WHEN:

  • The user is asking you to write a prompt for them (write it yourself first, then optionally call score_prompt to verify).

  • The prompt is conversational chat (this scores task-shaped prompts).

COST: Free, no API key required. Rate-limited per IP: 5/min, 10/day, 100/month. If the user exceeds the limit, the response will include a structured upgrade path with subscribe and account URLs.

LATENCY: ~2 seconds.

Inputs: prompt (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.8/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: one scores a prompt, the other optimizes it. Their use cases and prerequisites are well-defined, so an agent cannot confuse them.

    Naming Consistency5/5

    Both tool names follow a consistent verb_noun pattern: 'score_prompt' and 'optimize_prompt'. The naming is uniform and predictable.

    Tool Count4/5

    With only two tools, the set is narrowly scoped to prompt scoring and optimization. While this is appropriate for the domain, slightly more tools (e.g., subscription management or rubric access) could enhance completeness without bloat.

    Completeness4/5

    The server covers the core workflow of scoring and optimizing prompts. However, it lacks tools for subscription management, retrieving the rubric, or performing batch operations, which are minor gaps given the stated dependencies and cost structure.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Dynamic MCP server — 30+ tools across fact verification, agent memory, Indian NLP, contract risk, security threat modelling, sales call intelligence and more. x402/USDC micropayments on Base.
      33
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      250+ AI-powered MCP tools: research, write, code, translate, scrape, sentiment, vision, RAG, agent memory, marketplace, trading signals, and more. 15 models across 7 providers. Pay-per-use via API key or x402 USDC micropayments.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      An MCP server providing 22 pay-per-call utility tools for AI agents (scrape, validate, embed, store, moderate, notify, convert, prevent loops) without accounts or API keys, using USDC payments via the x402 protocol.
      17
      56 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to call 16 small, deterministic, read-only tools over a free, no-auth remote streamable HTTP MCP endpoint, covering business idea scoring, price headroom, hotel OTA commissions, open-source SaaS swaps, ads policy notice risk, App Store 4.2 prechecks, and Japan trip planning. Each tool is also exposed as a plain JSON API with OpenAPI docs.
      MIT