Skip to main content
Glama

Sf Query

sf_query
Read-onlyIdempotent

Query Salesforce records using SOQL. Returns matching records with all requested fields. Use sf_describe first to learn available fields for your object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSOQL query (e.g., "SELECT Id, Name FROM Account LIMIT 10")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
doneNoWhether all records have been returned
errorNoError code if connection failed
messageNoError message if connection failed
recordsNoArray of matching records
totalSizeNoTotal number of records matching query

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive. The description adds that it returns matching records with all requested fields, confirming the behavior and adding value beyond annotations by specifying the output scope.

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 sentences front-load the purpose and return value, followed by a usage tip. Every sentence is necessary and no filler, making it highly concise and well-structured.

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

Completeness5/5

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

Given the single parameter and existing output schema, the description fully covers what the tool does, how to use it, and a recommended prerequisite. No gaps in context.

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?

The schema has 100% coverage for the single parameter 'query', with a description and example. The main description also mentions SOQL and using sf_describe first, adding context beyond the schema. This compensates well.

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?

The description clearly states the tool queries Salesforce records using SOQL and returns matching records with all requested fields. It distinguishes from sibling tools like sf_describe or sf_get_record by specifying SOQL, making the purpose unambiguous.

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?

The description advises using sf_describe first to learn available fields, providing explicit guidance on when to use a prerequisite tool. While it doesn't state when not to use this tool, the advice is helpful for context.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.7/5.0
Disambiguation2/5

The set mixes Salesforce CRUD tools with a large Pipeworx research and prediction-market platform, and several tools overlap heavily: ask_pipeworx vs ask_pipeworx_beta are functionally identical, grounded/validate_claim/deep_research cover similar lookup/verification territory, and the six polymarket/bet tools share edge-finding purposes with only subtle distinctions. An agent would need to read long descriptions carefully to pick the right one, so misselection risk is high.

Naming Consistency3/5

Salesforce tools follow a clear sf_verb_noun pattern, and the Pipeworx tools mostly use lowercase snake_case phrase names, but the conventions diverge: ask_pipeworx has no underscore, deep_research/entity_profile are noun phrases rather than verb-first, and the sf_* prefix is a separate naming family. It is still readable, but it is not a single predictable pattern.

Tool Count2/5

39 tools is well past the heavy threshold, and most belong to a broad data/research platform rather than the Salesforce scope implied by the server name; only 8 tools are actually Salesforce CRUD/query operations. The count feels bloated for a coherent assistant, even if individual features are useful.

Completeness4/5

The Salesforce subset is complete: create/get/update/delete/query/search/describe/list-object cover the record lifecycle with no dead ends. The broader Pipeworx ecosystem also has strong coverage, including routing, grounded verification, research, entity resolution, memory, and subscriptions, with only minor gaps such as no direct citation-fetch tool and no Salesforce upsert/bulk operations.