Skip to main content
Glama

sf_account_context

Fetch an account's open opportunities, contacts, and recent activity—calls, emails, meetings—from Salesforce in a read-only view for cited sales-call briefs.

Instructions

An account's open opportunities (stage, amount, close date, next step, days since activity), contacts (name, title) and recent calls, emails and meetings. Read-only; cite as "Salesforce".

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": {
      "account_id": "<account_id>"
    },
    "name": "sf_account_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does make one meaningful disclosure: the tool is read-only, which tells the agent no mutation risk exists. It also discloses the shape of what comes back. However, it leaves the key behavioral unknown of what 'recent' means for calls, emails and meetings, and says nothing about behavior on an unknown or malformed account, permission scoping, or result size limits.

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?

The definition is two short segments: a dense inventory of returned data followed by the read-only and citation note. The most important information, what the tool returns, is front-loaded, and the parenthetical field lists are compact rather than padded. The sentence is a fragment and the citation clause is slightly tangential, but nothing is redundant.

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?

With no output schema, the description usefully compensates by enumerating the returned fields, which is the main thing an agent needs to decide whether to call it. It remains incomplete on the two points that affect correct invocation: the format of account_id and the time window implied by 'recent'. For a single-parameter read tool this is adequate but not fully self-sufficient.

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

Parameters2/5

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

There is a single required parameter, account_id, with 0% schema description coverage, so the description is the only place meaning could be added. It does not state whether the value is a Salesforce record ID, an external identifier, or an account name, nor does it give a format or example. With one parameter and no coverage, this gap is the description's most consequential omission.

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 names the resource precisely and enumerates its contents: open opportunities with stage, amount, close date, next step and days since activity; contacts with name and title; and recent calls, emails and meetings. That is specific enough to distinguish it from sf_find_account, which by name alone suggests lookup rather than a bundled account snapshot. The only weakness is the absence of an explicit verb, so the description reads as a noun phrase rather than a stated action.

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?

There is no guidance on when to call this versus sf_find_account or the activity-oriented siblings such as activity_log and sf_my_events. The phrase 'Read-only; cite as "Salesforce"' is an output/citation convention, not a selection rule, so it does not help an agent choose this tool over an alternative. The agent must infer the use case from the returned-field list alone.

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