Skip to content
mcp-psycopg2
mcp-psycopg2

Tools

Everything mcp-psycopg2 exposes to your AI client: tools, resources and prompts.

35 capabilities35 tool
Automated heuristic

Tool docs quality: D — 35 tools graded

Average 49/100 for how clearly each description tells an AI client what the tool does, what it needs, and what it changes. It is not a security audit.

  • Grade A: 0
  • Grade B: 2
  • Grade C: 7
  • Grade D: 18
  • Grade F: 8
How grades work
  • Start a new transaction

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Cancel the current database operation

    Description quality grade D, 45/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Close an existing connection

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Close a cursor

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Commit the current transaction

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Execute custom COPY statement

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Copy data from file to table

    Description quality grade C, 60/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Copy data from table to file

    Description quality grade C, 60/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Create a new cursor

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      The description says what the tool changes.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Create or open a large object

    Description quality grade D, 45/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Create a server-side named cursor

    Description quality grade D, 45/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Execute a query with multiple parameter sets

    Description quality grade C, 65/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Execute a SQL query

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Fetch all remaining rows

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Fetch multiple rows

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Fetch one row

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Get backend process ID

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Get connection details

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Get connection parameters

    Description quality grade B, 70/100 · 2 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Get database notices

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Get PostgreSQL server version

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • List all active connections

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • List all active cursors

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Create a connection string

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Parse a connection string

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Quote an SQL identifier

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Read from a large object

    Description quality grade C, 60/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Register composite type adapter

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Register hstore type adapter

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Register JSON type adapter

    Description quality grade D, 50/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Rollback the current transaction

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Scroll through cursor results

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: not passed0/15

      Open with an action verb, for example “Search issues…” or “Creates a label…”.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: passed15/15

      Looks read-only, so no disclosure is required. Saying “read-only” still helps.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Set transaction isolation level

    Description quality grade F, 35/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 4 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Set session parameters

    Description quality grade C, 55/100 · 3 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed0/20

      Only 3 words. Say what the tool needs and what it returns.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: passed20/20

      The description mentions what the tool takes.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.

  • Write to a large object

    Description quality grade D, 45/100 · 4 to fix
    • Has a description: passed20/20

      The tool has a description an AI client can read.

    • Sensible length: not passed10/20

      A bit terse. One more clause about inputs or results would help.

    • Starts with what it does: passed15/15

      Opens with an action verb.

    • Mentions its inputs: not passed0/20

      Say what the tool needs, for example “by issue number” or “takes a file path”.

    • Explains side effects: not passed0/15

      This looks like a write action. Say what changes, and whether it can be undone.

    • Gives usage guidance: not passed0/10

      Add when to use it, what it requires, or what to use instead.