Skip to main content
Glama

azeth_update_service

Update service metadata in the trust registry to modify endpoints, descriptions, capabilities, or other attributes after initial registration.

Instructions

Update metadata for your registered service on the trust registry.

Use this when: You need to change your service endpoint, description, capabilities, or other metadata after initial registration with azeth_publish_service.

Supported metadata keys: "endpoint", "description", "capabilities", "name", "entityType", "pricing". For capabilities, provide a JSON array string (e.g., '["translation", "nlp"]').

Note: Catalogs are off-chain and served from your endpoint. Update your catalog by updating the response at your endpoint, not via this tool.

Returns: Confirmation with transaction hash.

Note: Your account must already be registered on the trust registry. This requires a transaction (gas cost). Only the account owner can update metadata.

Example: { "key": "endpoint", "value": "https://api.example.com/v2" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoTarget chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet").
keyYesMetadata key to update.
valueYesNew value. For "capabilities", provide a JSON array string like '["translation", "nlp"]'.

Implementation Reference

  • Tool registration and handler implementation for azeth_update_service. It calls `client.updateServiceMetadata` to perform the on-chain update.
    server.registerTool(
      'azeth_update_service',
      {
        description: [
          'Update metadata for your registered service on the trust registry.',
          '',
          'Use this when: You need to change your service endpoint, description, capabilities,',
          'or other metadata after initial registration with azeth_publish_service.',
          '',
          'Supported metadata keys: "endpoint", "description", "capabilities", "name", "entityType", "pricing".',
          'For capabilities, provide a JSON array string (e.g., \'["translation", "nlp"]\').',
          '',
          'Note: Catalogs are off-chain and served from your endpoint. Update your catalog by',
          'updating the response at your endpoint, not via this tool.',
          '',
          'Returns: Confirmation with transaction hash.',
          '',
          'Note: Your account must already be registered on the trust registry.',
          'This requires a transaction (gas cost). Only the account owner can update metadata.',
          '',
          'Example: { "key": "endpoint", "value": "https://api.example.com/v2" }',
        ].join('\n'),
        inputSchema: z.object({
          chain: z.string().optional().describe('Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet").'),
          key: z.enum(['endpoint', 'description', 'capabilities', 'name', 'entityType', 'pricing']).describe(
            'Metadata key to update.',
          ),
          value: z.string().min(1).max(2048).describe(
            'New value. For "capabilities", provide a JSON array string like \'["translation", "nlp"]\'.',
          ),
        }),
      },
      async (args) => {
        let client;
        try {
          client = await createClient(args.chain);
    
          const txHash = await client.updateServiceMetadata(args.key, args.value);
    
          return success({
            key: args.key,
            value: args.value,
            message: `Service metadata "${args.key}" updated successfully.`,
          }, { txHash });
        } catch (err) {
          return handleError(err);
        } finally {
          try { await client?.destroy(); } catch { /* M-10 */ }
        }
      },
    );
Behavior4/5

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

With no annotations, description carries full disclosure burden effectively. Documents gas costs ('requires a transaction'), authorization ('Only the account owner'), prerequisites ('account must already be registered'), and return value ('Confirmation with transaction hash'). Missing only edge case/error behavior disclosure.

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?

Well-structured with clear semantic blocks: purpose, usage conditions, supported values, important limitations (catalogs), return type, prerequisites, and example. Each sentence delivers unique information. Minimally redundant with schema (only capabilities format overlaps slightly).

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 blockchain mutation operation with no output schema, coverage is strong: gas costs, ownership requirements, prerequisites, return format, and sibling relationships are all documented. Only lacks explicit error condition descriptions or idempotency notes.

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%, establishing baseline 3. Description adds value by enumerating supported keys (redundant but scannable), emphasizing JSON array format for capabilities, and providing a concrete JSON usage example ('{"key": "endpoint", ...}') that clarifies the key-value structure.

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?

States specific action ('Update metadata') and resource ('registered service on the trust registry'). Explicitly distinguishes from sibling azeth_publish_service by noting this is for changes 'after initial registration', clarifying the update vs. create distinction.

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?

Provides explicit 'Use this when' clause with specific scenarios. Names prerequisite sibling tool (azeth_publish_service) for initial registration. Critically includes negative guidance ('Update your catalog...not via this tool') preventing common misuse.

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/azeth-protocol/mcp-azeth'

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