Skip to main content
Glama

stellar_contract_restore

Restore evicted Stellar contract storage entries by rebuilding and resubmitting entries lost to ledger expiry, returning them to active state on testnet, mainnet, futurenet, or local.

Instructions

Restore evicted contract data entries

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feeNoTransaction fee in stroops
keyNoStorage key to restore
key_xdrNoStorage key as base64-encoded XDR
networkYesStellar network
build_onlyNoOnly build transaction, do not submit
durabilityNoStorage durability type
contract_idNoContract ID to restore
source_accountYesAccount that will pay for restoration
ttl_ledger_onlyNoOnly print the new TTL ledger
ledgers_to_extendNoNumber of ledgers to extend after restoration

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

C2.9/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 behavioral burden. It implies a write/mutation operation but does not disclose permissions needed, whether the restoration is immediate or requires submission, or what happens to ledger TTLs without additional options.

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, front-loaded sentence with no wasted words. It is efficient, though its brevity borders on under-specification for a 10-parameter tool.

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

Completeness2/5

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

The tool has 10 parameters, no annotations, and no output schema, so the description should explain more about behavior, side effects, and required context. A single sentence is not complete enough for a complex contract data restoration operation.

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%, so every parameter is already documented in the input schema. The description adds no additional meaning beyond the schema, making the baseline score of 3 appropriate.

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 (restore) and resource (evicted contract data entries). This distinguishes it from read/fetch/upload siblings, but it does not explicitly differentiate from stellar_contract_extend, which also deals with contract data persistence.

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?

No guidance on when to use this tool versus alternatives such as stellar_contract_extend or stellar_contract_fetch. The description does not state prerequisites (e.g., evicted entries must exist) or when restoration is appropriate.

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

Deploy Server

Other Tools