Skip to main content
Glama
salesforce-readonly

salesforce-readonly

run_soql

Execute read-only SOQL SELECT queries against Salesforce to inspect records within the user's permissions; results are capped at 200 rows.

Instructions

Runs a read-only SOQL SELECT. Results are capped at 200 rows.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "run_soql"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it usefully discloses that execution is read-only and that results are truncated at 200 rows. It does not say what happens on truncation (silent cap vs. flag), whether LIMIT/OFFSET in the query interacts with the cap, or what auth/permission requirements apply.

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?

Two short sentences, zero filler, with the read-only nature and result cap both front-loaded where an agent will see them.

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 one-parameter tool with no output schema, the essentials of what it does and its row cap are present, but the agent is left guessing about truncation signaling, error behavior, and query grammar constraints. Adequate, not complete.

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 0% for the single `query` parameter, so the description must compensate; calling it a "SOQL SELECT" meaningfully constrains the input to SELECT statements and the 200-row note signals the result cap. It still adds nothing about query syntax expectations, field lists, or whether bind/limit clauses are honored.

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?

"Runs a read-only SOQL SELECT" gives a specific verb (runs) and resource (SOQL SELECT) and explicitly marks the operation read-only, which separates it from the sibling record-fetching and schema-describing tools. It stops short of naming or contrasting a sibling, so it lands below the top of the scale.

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

Usage Guidelines2/5

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

The description never states when an agent should reach for arbitrary SOQL rather than get_record or describe_object, nor any preconditions (object/field knowledge, permissions). Usage is only implied by the mention of SOQL SELECT.

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