Skip to main content
Glama

Discover actions

discover_actions
Read-only

The actions this credential may take: each one a named write to one source through that source's official API, deletes included. With no action named it answers each action's name and one line, grouped by source with the sources it may write to; filter by source, resource or a word. Past 150 it answers resources with counts instead: name one to narrow. Name one action for what it does, the OAuth scope it needs and its arguments as a JSON schema. Each action names its level: "write", or "delete" for a destructive one (a delete, void, approval, email or post, or a change that approves, completes, archives or voids), and only actions within the person's level on a source are listed. A destructive action needs preview_action first: take_action takes the confirmation it answers. An action that becomes destructive only with some arguments, such as a status of VOIDED, needs "delete" for them.

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": "discover_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
wordNoOnly actions whose name or title holds this word, e.g. void or note.
actionNoOne action's name: answers its description, scope and arguments.
sourceNoOnly this source's actions, e.g. Xero or Simpro.
resourceNoOnly actions on this resource, or on resources that start with it, e.g. invoices, job or setup_account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / required
      Removed value: -[]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses a 150-item truncation threshold with a fallback response shape (resources with counts), permission-level filtering ('only actions within the person's level on a source are listed'), and the classification rule for what counts as destructive, including argument-conditional destructiveness. It also states that a destructive action requires preview_action first and that take_action consumes the resulting confirmation — context an agent could not get from the schema.

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 default behavior, filtering, truncation, and safety flow are front-loaded in that order, and every sentence carries operational information. The destructive-classification sentence is dense and hard to parse ('a delete, void, approval, email or post, or a change that approves, completes, archives or voids'), costing some readability.

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?

There is no output schema, and the description compensates fully by describing all three response shapes: name plus one line grouped by source, a counts-by-resource summary past 150, and per-action description/scope/JSON-schema arguments. Combined with the permission and confirmation rules, an agent has everything needed to call this correctly.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: it explains what happens in action mode (returns description, OAuth scope, argument JSON schema) and how filters interact with the 150 threshold ('name one to narrow'). The source/resource/word filters are characterized in prose that mostly mirrors the schema, so it does not fully exceed the baseline.

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 opens with a precise verb-plus-resource statement: the named write actions this credential may take, one per source, through that source's official API. It scopes the tool as write-only ('deletes included') and distinguishes it from the read side and from the execution siblings (preview_action, take_action), so an agent can route without opening the schema.

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?

It clearly explains the two modes of use (call with no action to browse by source; name one action to get its description, scope and arguments) and routes destructive cases to preview_action then take_action. It does not explicitly exclude read discovery (e.g. pointing to discover_operations for reads), but the 'write' framing makes that inference reliable.

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.

Resources