Skip to main content
Glama

List pandas-doctor rules

list_rules
Read-onlyIdempotent

Lists known slow pandas patterns and their rule codes so you can look up a check_code finding or see which patterns are covered and whether fixes are safe.

Instructions

List the slow pandas patterns pandas-doctor knows, with their rule codes.

Use this to look up a code from a check_code finding (PDD001 ...) or to see which patterns are covered. fix says whether check_code can rewrite the pattern safely, only as a suggestion, or only at runtime (pandas-doctor run). Read-only, no arguments.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and closed-world, and the description's 'Read-only, no arguments' merely repeats that. The real added value is explaining the meaning of the returned `fix` field: whether check_code can rewrite the pattern safely, only suggest it, or only at runtime via pandas-doctor run. That is behavioral context the annotations cannot supply.

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-loaded with what is listed, then the use cases, then the `fix` semantics. Three short sentences with little waste; the only mild redundancy is the 'Read-only, no arguments' clause that repeats structured fields.

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 need not be described, yet the description still clarifies the ambiguous `fix` tri-state, which is the key interpretive detail. Nothing an agent needs in order to call a zero-argument listing tool is missing.

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?

Zero parameters, so the baseline is 4; the description confirms 'no arguments', consistent with the empty schema. There is no parameter meaning left to add.

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?

States a specific verb and resource: lists the slow pandas patterns (rules) that pandas-doctor knows, along with their rule codes. That is distinguishable from check_code (which flags findings) and verify_rewrite (which presumably validates rewrites).

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 two concrete triggers: looking up a rule code seen in a check_code finding (e.g. PDD001), or surveying which patterns are covered. It names the sibling check_code explicitly. It does not say when not to use it, but for a zero-argument catalog lookup the guidance is close to complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools