planetscale-mcp-agent-operating-model

planetscale-mcp-agent-operating-model is a skill for Claude Code, Codex from planetscale/claude-plugin. It costs 32 tokens per session (2,023 once invoked), scanned A, a copy of planetscale-mcp-agent-operating-model, Apache-2.0.

A guide for how coding agents should use PlanetScale’s MCP tools, Insights, schema recommendations, and repository files. It emphasizes read-only access and human approval for database changes.

In plain words
What is it for?
Use it when an agent needs PlanetScale monitoring, schema recommendations, database access, or repository guidance. It helps choose the right tool scope and handle queries and changes safely.
Why use it?
It prevents agents from changing production databases or application behavior automatically. It also clarifies which PlanetScale MCP server to use and distinguishes command-line instructions from project instructions.

Skill for Claude CodeCodex

Part of the planetscale plugin — 19 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/planetscale/claude-plugin/09-mcp-agent-operating-model
Any agent
npx skills add planetscale/claude-plugin --skill 09-mcp-agent-operating-model
Clone the repo
git clone --depth 1 https://github.com/planetscale/claude-plugin

Made for: Claude Code, Codex.

Or install planetscale, the plugin that ships this one along with the rest of its 19 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for planetscale-mcp-agent-operating-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/planetscale/claude-plugin/09-mcp-agent-operating-model.svg)](https://agentmods.dev/skills/planetscale/claude-plugin/09-mcp-agent-operating-model)
Your own site
<a href="https://agentmods.dev/skills/planetscale/claude-plugin/09-mcp-agent-operating-model"><img src="https://agentmods.dev/badge/skills/planetscale/claude-plugin/09-mcp-agent-operating-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.02023
Opus 5 $0.00016 $0.01012
Sonnet 5 $0.00006 $0.00405
Haiku 4.5 $0.00003 $0.00202

Measured 5d ago against content hash 6f242cca94a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

planetscale-mcp-agent-operating-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to planetscale-mcp-agent-operating-model — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

planetscale-skills/09-mcp-agent-operating-model/SKILL.md · 227 lines

How it starts

The opening of the file, as written. The whole thing — 227 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MCP agent operating model

Purpose

Define how agents should use PlanetScale MCP safely. Agents should use production telemetry to generate useful work while avoiding autonomous production changes.

Default MCP choice

Use the PlanetScale MCP insights-only server when the task only needs Insights and Schema Recommendations.

Use the full PlanetScale MCP server only when the task explicitly requires database/schema access beyond Insights. Prefer read-only scopes.

The full MCP server has query execution tools. Treat write query tools as disabled unless the operator explicitly approves a specific non-production action or a carefully reviewed production action.

AGENTS.md guidance

Two different documents both named AGENTS.md serve different purposes:

  1. CLI agent guide — shipped with pscale (AGENTS.md in the planetscale/cli repo, or pscale agent-guide --format json). Covers auth, --format json, flag placement, and pscale sql. Load skill 14-pscale-cli-automation for the same conventions inside this skills pack.

  2. Project agent guide — your application repository's AGENTS.md (or equivalent). Covers database targeting and approval policy for this app.

When working inside a repository, recommend adding a project database targeting section to AGENTS.md or equivalent project instructions:

  • PlanetScale organization.
  • Database.
  • Branch.
  • Engine: Vitess or Postgres.
  • Production branch name.
  • Whether agents may use MCP insights-only or full MCP.
  • Whether write queries are forbidden.
  • Required approval protocol for schema, Traffic Control, webhooks, roles, and network changes.

Do not edit AGENTS.md without approval.

Safe autonomous tasks

Allowed by default:

  • Read Insights.
  • Read schema recommendations.
  • Read schema metadata.
  • Read existing webhooks and Traffic Control configuration.
  • Read branch metadata.
  • Inspect repository code.
  • Correlate query patterns with code.
  • File issues.
  • Open pull requests.
  • Create development branches.
  • Apply DDL and migrations to non-production development branches.
  • Open deploy requests into branches protected by a review workflow.
  • Draft Traffic Control budget proposals.
  • Draft webhook receiver requirements.

Read the full file on GitHub · 227 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 227 lines · 32 tokens per session scan A 6f242cca94a4

Subscribe to this mod's changes

planetscale-mcp-agent-operating-model is a skill published in the GitHub repository planetscale/claude-plugin (4 stars, last pushed 5d ago), licensed Apache-2.0. It adds 32 tokens to every session and 2,023 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to planetscale-mcp-agent-operating-model, differing in 4 lines, and is treated as a copy.

Related

Other skills, from other repositories

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

debugging

How to debug tursodb using Bytecode comparison, logging, ThreadSanitizer, deterministic simulation, and corruption analysis tools.

tursodatabase/turso · 28 tokens

sdk-design

Doctrine for designing and evolving any SDK Grida ships — TypeScript, Rust, or otherwise. "SDK" here means a surface that crosses a foreign-or-foreign-treated boundary: published packages, separately-versioned consumers, FFI bindings, public-by-design modules. An SDK's job is to refuse; a strict, honest surface…

gridaco/grida · 199 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

supabase

Supabase / PostgREST Row-Level-Security playbook — pull the anon (or leaked servicerole) key out of the frontend JS, map tables from the auto-generated OpenAPI spec, test anonymous RLS READ disclosures (PII/secret leaks), and anonymous RLS WRITE abuse (insert/update/delete — e.g. forging…

PentesterFlow/agent · 120 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens