Skip to main content
Glama

list-patterns

List all Solana/Anchor vulnerability patterns that SolanaShield checks, with optional severity or category filters to focus security audits.

Instructions

List all vulnerability patterns SolanaShield checks for, optionally filtered by severity or category.

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-patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoFilter by category (e.g., 'CPI Safety', 'Token Safety')
severityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'List' implies a safe read, but the definition says nothing about whether the full catalog is returned in one call, how large the result is, or whether any permission is needed. That is thin for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; the operation and its optional narrowing are stated immediately.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity two-parameter read tool this is mostly adequate, but with no output schema the description should indicate what a returned pattern contains (id, severity, category, description) so an agent can plan downstream use. The filter combination semantics are also left unstated.

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

Parameters3/5

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

Schema coverage is 50%, and the description only restates that both filters are optional, which the schema already conveys via zero required parameters. It adds nothing about how severity and category interact (union vs intersection) or what happens with an invalid category, so it neither compensates nor detracts.

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

Purpose4/5

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

The description states a specific verb and resource ('List all vulnerability patterns SolanaShield checks for'), which is a recognizable reference-catalog operation and distinct from the audit/check siblings. It does not explicitly differentiate itself from those siblings, but the naming of the resource does most of the work.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Optionally filtered by severity or category' implies how to narrow results, which is implied usage guidance. There is no statement about when to reach for this catalog versus running an audit (audit-program, check-cpi, etc.), so an agent must infer that this is a lookup of the rule set rather than an evaluation.

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