Skip to main content
Glama

Refresh Medium stats

refresh_medium_stats
Destructive

Sync the writer's Medium stats from Medium and store them, then return them in the same shape as get_platform_analytics for MEDIUM. Use when get_platform_analytics reports no stored Medium stats, or the writer asks for fresh numbers.

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

Input Schema

NameRequiredDescriptionDefault
recentLimitNoHow many recent posts to include. Default 10.

Output Schema

NameRequiredDescriptionDefault
codeNo
noteNo
handleNo
reasonNo
sourceNo
statusNo
totalsNo
messageNo
profileNo
summaryNo
nextStepNo
platformYes
usernameNo
verifiedNo
benchmarkNo
connectedYes
fetchedAtNo
followersNo
followingNo
readinessNo
growthDataNo
tweetCountNo
cachedStatsNoA JSON value stored by Narrareach.
displayNameNo
publicationNo
recentNotesNo
recentPostsNo
statsCachedAtNo
engagementDataNo
profilePictureNo
connectedAccountNo
verifiedFollowersNo
analyticsAvailableNo
needsExtensionSyncNo
postAnalyticsAvailableNo
profileAnalyticsAvailableNo
officialAnalyticsAvailableNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / code
      Added value: +{
      +  "enum": [
      +    "ANALYTICS_CONNECTION_REQUIRED"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextStep
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "action": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "action",
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "enum": [
      +    "action_required"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

The description discloses behavior beyond the annotations: it fetches from an external source (consistent with openWorldHint=true) and persists the result (consistent with readOnlyHint=false), which tells the agent this is a network-backed write, not a cached read. The gap is that destructiveHint=true is never explained — nothing says the previously stored stats are overwritten or what happens if the fetch fails.

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, zero filler, with the core action front-loaded before the usage condition. Every clause earns its place.

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?

An output schema exists, so the description needn't detail return values, and it usefully points at the get_platform_analytics shape for interpretation. It is slightly incomplete on failure modes — no mention of what happens when Medium isn't connected or authorized, which matters for an open-world fetch.

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% and the single recentLimit parameter is fully documented with type, range, and default, so the schema carries the burden. The description adds no semantics about what the limit controls in the returned payload, so the baseline 3 applies.

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?

States a specific verb and resource: sync the writer's Medium stats from Medium, store them, and return them. It also anchors the output to a named sibling (get_platform_analytics for MEDIUM), so the agent can distinguish it from the read-only analytics tools without opening a schema.

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?

Explicitly names both trigger conditions: get_platform_analytics reports no stored Medium stats, or the writer asks for fresh numbers. This is a clear when-to-use rule with the alternative tool named, leaving nothing to inference.

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