Skip to main content
Glama

meta_refresh_token

Extend an Instagram or Facebook user access token via token exchange, or refresh a Threads long-lived token using the Threads refresh endpoint.

Instructions

Extend an Instagram/Facebook user token through the token-exchange flow, or refresh a Threads long-lived token through the Threads refresh endpoint.

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": {
      "long_lived_token": "<long_lived_token>"
    },
    "name": "meta_refresh_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNoToken platform. Defaults to instagram for backward compatibility.instagram
long_lived_tokenYesCurrent long-lived access token to refresh

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.2
    • addedInput schema / properties / platform
      Added value: +{
      +  "default": "instagram",
      +  "description": "Token platform. Defaults to instagram for backward compatibility.",
      +  "enum": [
      +    "instagram",
      +    "threads"
      +  ],
      +  "type": "string"
      +}
  2. First observedv2.0.1

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the two underlying flows but says nothing about required permissions, whether the old token is invalidated, rate limits, or what the response contains.

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?

A single, front-loaded sentence that clearly states both operating modes with no filler. Every clause earns its place.

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 two-parameter token tool with no annotations and no output schema, the description covers the what but omits important context: what a successful refresh returns, whether the old token remains valid, and any error conditions. It is minimally adequate but leaves meaningful gaps.

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 the baseline would be 3. The description adds meaning beyond the schema by mapping platform values to distinct backend flows (Instagram/Facebook token-exchange vs. Threads refresh endpoint), which helps the agent understand the platform parameter's effect.

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 a specific verb and resource (extend/refresh an access token) and distinguishes the two platform flows. However, it does not differentiate itself from the sibling meta_exchange_token tool, which also deals with token exchange, leaving ambiguity about which tool to pick.

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

Usage Guidelines3/5

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

Usage is only implied: the platform parameter determines whether the exchange flow or the Threads refresh endpoint is used. There is no explicit when-to-use guidance, no mention of prerequisites, and no comparison with meta_exchange_token or meta_debug_token.

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