Skip to main content
Glama

DERO MCP Server

dero_get_sc

Read-only

Read smart contract state (code and/or stored variables) by SCID via DERO.GetSC. This is the primary entry point for any contract inspection on DERO.

When to call: as the first step in any DVM contract investigation. Pair with dero_docs_search("DVM-BASIC") to interpret the returned code blob. PREFER citing dero_docs_search("smart contract") or dero_docs_get_page on a relevant DVM page so the user can interpret the contract's state model.

Input Requirements (CRITICAL):

  • scid MUST be exactly 64 hex characters (the contract id).

  • code is OPTIONAL (defaults to true). Set false to skip the source blob when you only need stored variables.

  • variables is OPTIONAL (defaults to true). Set false to skip variables when you only need the source.

  • topoheight is OPTIONAL. Omit or use -1 for the latest committed state.

Output: { code, balances, variables: { stringkeys, uint64keys }, ... }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNoInclude contract source (default true)
scidYes64-char hex Smart Contract ID
variablesNoInclude stored variables (default true)
topoheightNoTopo height; omit or use -1 for latest

TDQS

A4.6/5.0
Behavior5/5

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

While annotations already declare readOnlyHint=true and destructiveHint=false, the description enriches understanding by detailing default behaviors for 'code' and 'variables' (both default true), how to skip them for efficiency, and the meaning of omitting or using -1 for 'topoheight'. It also discloses the output shape, which is absent from annotations or schema. No contradictions exist; the description complements the annotations perfectly.

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 description is longer than typical but exceptionally well-organized with clear headings: 'Input Requirements (CRITICAL)' and 'Output'. Every sentence adds value: usage context, defaults, and output shape. While it could be considered verbose for a simple getter, the complexity of the tool justifies the length. No fluff; each line is functional.

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

Completeness5/5

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

Given there is no output schema, the description compensates by defining the return structure ('{ code, balances, variables: { stringkeys, uint64keys }, ... }'). It also covers default behaviors, parameter edge cases (omitting topoheight), and practical usage tips. For a tool with 4 parameters and no output schema, this description leaves no critical information gaps.

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 the baseline is 3. The description repeats parameter purposes but adds minimal new semantic detail beyond schema descriptions; it does clarify the default values and the '-1 for latest' convention for topoheight, which is also in the schema. The output format note is helpful but not parameter-specific. Thus, it meets but does not exceed the baseline.

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?

The description opens with a specific verb+resource: 'Read smart contract state (code and/or stored variables) by SCID'. It immediately distinguishes itself as 'the primary entry point for any contract inspection on DERO,' clearly differentiating it from sibling tools like 'dero_get_transaction' or 'explain_smart_contract'. No ambiguity about what the tool does.

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 states when to call: 'as the first step in any DVM contract investigation.' It also gives guidance on complementing with dero_docs_search for interpretation, and even instructs to prefer citing docs pages. This goes beyond basic usage and provides a clear decision path, covering both when and how to use the tool effectively.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose, with detailed descriptions that specify when to call it and how it differs from similar tools. Composite tools are well-defined, overlapping concerns are minimized.

Naming Consistency4/5

Tool names follow a general pattern: 'dero_' for core daemon RPC wrappers, 'tela_' for TELA-specific composites, and descriptive names for other composites. While mostly consistent, there are exceptions like 'audit_chain_artifact_claim' and 'dero_durl_to_scid' breaking the pattern slightly.

Tool Count4/5

With 32 tools, the server is comprehensive but slightly heavy. However, each tool serves a specific need in the DERO ecosystem, covering chain queries, docs, TELA, and composite analyses. The count is justifiable given the domain breadth.

Completeness4/5

The tool set covers core chain operations, documentation, TELA app lifecycle, and common analytical tasks. Minor gaps exist, such as lack of wallet interaction tools or transaction submission, but these are outside the apparent read-only/analysis scope.