Skip to main content
Glama
OpenRouter MCP Server

OpenRouter MCP Server

by Hulupeep

refresh_cache

Force-update cached AI model data so searches, comparisons, and pricing queries reflect the current OpenRouter catalog.

Instructions

Force refresh the model data cache

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_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden and does not meet it. It says nothing about whether this invalidates shared/global state, whether it is expensive or rate-limited, whether it requires credentials, or what the caller gets back after the refresh.

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?

A single six-word sentence with the action front-loaded and no filler. It is efficient, though the terseness is part of why behavioral context is thin.

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?

For a zero-parameter, no-output-schema tool, the description covers the core action adequately. It leaves open what 'refresh' entails operationally (re-fetch source? clear entries?) and whether it is safe to call repeatedly, which an agent would want before invoking a state-changing cache operation.

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 tool takes zero parameters, so there is no parameter semantics to explain; baseline 4 applies. The description correctly makes no attempt to describe inputs, which matches the empty schema.

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?

States a specific verb and resource ('force refresh' + 'model data cache'), which reads clearly as a cache-invalidation action distinct from the read-oriented siblings like list_models and get_model. It does not name or contrast any sibling explicitly, so it falls short of full differentiation.

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 simply querying models again, nor any mention of a precondition (stale data), cost, or expected frequency. The word 'force' hints at bypassing a cached read, but the agent must infer the trigger condition entirely.

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