Skip to main content
Glama

refresh_credential

Refreshes a connection's user data to verify custom field sets and lists, including nested items fetched from the partner API and stored on the connection.

Instructions

Refresh the connection's user data and show what it contains. Checks chain roots (custom fields sets and lists without a parent) and their nested (type 2) descendants: their contents are fetched by a request to the partner's API and stored on the connection, not in the builder. A test_request run will not help here: it does not see custom fields at all. Dynamic children (a list or set with a parent) are not run when the connection is saved, by design: they wait for the parent to be chosen in the wizard, and run_credential_wizard checks them. After creating a root set, look here right away: if the fields did not arrive, there is an error in its request or in the response parsing.

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": {
      "appId": "<appId>",
      "credentialId": "<credentialId>"
    },
    "name": "refresh_credential"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYesApp ID
credentialIdYesConnection ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that contents are fetched via a request to the partner's API and stored on the connection (a real side effect outside the builder), that dynamic children are deliberately not executed on save, and that missing fields indicate a request or response-parsing error. Missing are return shape, permission requirements, and any cost/latency note, which keeps it off a 5.

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 purpose is front-loaded in the first sentence, and each subsequent sentence earns its place by adding sibling routing or failure diagnosis. It is dense with domain jargon ("type 2 descendants", "chain roots") and runs longer than typical, but there is no filler.

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

Completeness4/5

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

No output schema and no annotations, so the description must cover behaviour itself, which it largely does: scope, side effects, failure interpretation, and sibling routing. The main remaining gap is what a successful refresh response looks like beyond "show what it contains", which an agent might want before deciding how to report results.

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 description coverage is 100% with only two required numeric parameters (appId, credentialId), so the schema already documents them fully. The description adds no additional meaning about either parameter, such as which connection states are valid or whether the credential must be saved first. Baseline 3 applies.

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?

"Refresh the connection's user data and show what it contains" gives a specific verb and resource, and the following sentence narrows the scope to chain roots and their nested type-2 descendants. It also names the neighbours it is not (test_request, run_credential_wizard), so an agent can separate it from siblings. The term "user data" is initially vague but is immediately disambiguated.

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

Usage Guidelines5/5

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

Explicit when-to-use ("After creating a root set, look here right away"), explicit when-not ("A test_request run will not help here: it does not see custom fields at all"), and an explicit alternative for the excluded case (dynamic children are checked by run_credential_wizard). Both the positive trigger and the counter-indication are stated, which is the full bar.

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