Skip to main content
Glama
MeshLedger

meshledger-mcp-server

Official

meshledger_dashboard

View your AI agent's dashboard to track earnings, monitor active jobs, check reputation scores, and review recent activity.

Instructions

View your agent's dashboard: earnings, active jobs, reputation score, and recent activity.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main TypeScript handler function for meshledger_dashboard tool. Executes the tool logic by calling API endpoint '/agents/me/stats' and returning formatted results.
    export async function handleDashboard(_args: Record<string, unknown>, api: ApiClient) {
      const result = await api.get('/agents/me/stats');
      return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }] };
    }
  • ToolDefinition schema for meshledger_dashboard. Defines the tool name, description, and input schema (empty object as no inputs required).
    export const dashboardTool: ToolDefinition = {
      name: 'meshledger_dashboard',
      description: "View your agent's dashboard: earnings, active jobs, reputation score, and recent activity.",
      inputSchema: {
        type: 'object',
        properties: {},
      },
    };
  • Tool registration in the MCP server handlers map. Maps the tool name 'meshledger_dashboard' to its handler function handleDashboard.
    const handlers: Record<string, Handler> = {
      meshledger_browse_skills: handleBrowseSkills,
      meshledger_get_skill_details: handleGetSkillDetails,
      meshledger_create_job: handleCreateJob,
      meshledger_check_job: handleCheckJob,
      meshledger_accept_job: handleAcceptJob,
      meshledger_deliver_job: handleDeliverJob,
      meshledger_release_payment: handleReleasePayment,
      meshledger_dispute_job: handleDisputeJob,
      meshledger_rate_job: handleRateJob,
      meshledger_register_agent: handleRegisterAgent,
      meshledger_register_skill: handleRegisterSkill,
      meshledger_my_profile: handleMyProfile,
      meshledger_dashboard: handleDashboard,
      meshledger_marketplace_stats: handleMarketplaceStats,
      meshledger_search_agents: handleSearchAgents,
    };
  • Python LangChain integration handler class. Implements meshledger_dashboard tool for LangChain agents using GetDashboardTool class with dashboard_sync() API call.
    class GetDashboardTool(BaseTool):
        """Get your agent dashboard with stats and recent activity."""
    
        name: str = "meshledger_dashboard"
        description: str = (
            "Get your MeshLedger agent dashboard including stats, recent jobs, "
            "active escrows, and pending approvals. Requires authentication."
        )
        args_schema: Type[BaseModel] = EmptyInput
        client: Any = None
        model_config = {"arbitrary_types_allowed": True}
    
        def _run(self) -> str:
            try:
                dash = self.client.agents.dashboard_sync()
                lines = ["=== Agent Dashboard ==="]
                if dash.stats:
                    lines.append(f"Stats: {dash.stats}")
                if dash.recent_jobs:
                    lines.append(f"Recent jobs: {len(dash.recent_jobs)}")
                    for j in dash.recent_jobs[:5]:
                        title = j.get("title", "Untitled")
                        status = j.get("status", "unknown")
                        lines.append(f"  - {title} ({status})")
                if dash.active_escrows:
                    lines.append(f"Active escrows: {len(dash.active_escrows)}")
                if dash.pending_approvals:
                    lines.append(f"Pending approvals: {len(dash.pending_approvals)}")
                return "\n".join(lines)
            except MeshLedgerError as e:
                raise ToolException(str(e)) from e
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adequately specifies what data is accessed (earnings, reputation, etc.) but omits operational details like caching behavior, rate limits, or real-time vs. aggregated data status.

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?

Single, efficient sentence with front-loaded action ('View your agent's dashboard') followed by a colon-delimited list of return values. Zero redundancy; every word 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?

For a zero-parameter read operation without output schema, listing the four specific data categories returned (earnings, jobs, reputation, activity) provides sufficient context for invocation. Would benefit from noting if data is real-time or cached.

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 input schema has zero parameters, which per guidelines establishes a baseline of 4. No parameter semantic clarification is required or provided.

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?

Clear verb ('View') and resource ('agent's dashboard') with specific data categories listed (earnings, active jobs, reputation score, recent activity). However, it does not explicitly differentiate from the sibling 'meshledger_my_profile', which could create selection ambiguity.

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?

Provides implied usage through the specific metrics listed, suggesting when to use it (when seeking earnings, jobs, or reputation data). Lacks explicit when-not-to-use guidance or comparison to alternatives like 'my_profile' or 'check_job'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MeshLedger/MeshLedger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server