Skip to main content
Glama

mt_endorse_agent

Idempotent

Issue a W3C SkillEndorsementCredential for another agent using valid interaction proof no older than 72 hours, adding verified skill evidence to its Trust Score.

Instructions

Issue a W3C SkillEndorsementCredential for another agent.

Requires a valid evidence_hash from mt_create_interaction_proof (max 72h old). Self-endorsement is rejected. Contributes to the endorsed agent's Trust Score.

Args: endorser_api_key: MolTrust API key of the endorsing agent endorsed_did: DID of the agent to endorse skill: Skill being endorsed (python, javascript, security, prediction, trading, data_analysis, api_integration, smart_contracts, nlp, computer_vision, general) evidence_hash: SHA-256 hash from mt_create_interaction_proof (sha256:...) evidence_timestamp: ISO 8601 timestamp from mt_create_interaction_proof vertical: MolTrust vertical (skill, shopping, travel, prediction, salesguard, sports, core)

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": {
      "endorser_api_key": "<endorser_api_key>",
      "endorsed_did": "<endorsed_did>",
      "skill": "<skill>",
      "evidence_hash": "<evidence_hash>",
      "evidence_timestamp": "<evidence_timestamp>",
      "vertical": "<vertical>"
    },
    "name": "mt_endorse_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
skillYesSkill being endorsed (python, javascript, security, prediction, trading, data_analysis, api_integration, smart_contracts, nlp, computer_vision, general)
verticalYesMolTrust vertical (skill, shopping, travel, prediction, salesguard, sports, core)
endorsed_didYesDID of the agent to endorse, e.g. did:moltrust:a1b2c3d4e5f60718
evidence_hashYesSHA-256 hash from mt_create_interaction_proof (sha256:...)
endorser_api_keyYesMolTrust API key of the endorsing agent
evidence_timestampYesISO 8601 timestamp from mt_create_interaction_proof

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.1
    • addedInput schema / properties / endorsed_did / description
      Added value: +"DID of the agent to endorse, e.g. did:moltrust:a1b2c3d4e5f60718"
    • addedInput schema / properties / endorser_api_key / description
      Added value: +"MolTrust API key of the endorsing agent"
    • addedInput schema / properties / evidence_hash / description
      Added value: +"SHA-256 hash from mt_create_interaction_proof (sha256:...)"
    • addedInput schema / properties / evidence_timestamp / description
      Added value: +"ISO 8601 timestamp from mt_create_interaction_proof"
    • addedInput schema / properties / skill / description
      Added value: +"Skill being endorsed (python, javascript, security, prediction, trading, data_analysis, api_integration, smart_contracts, nlp, computer_vision, general)"
    • addedInput schema / properties / vertical / description
      Added value: +"MolTrust vertical (skill, shopping, travel, prediction, salesguard, sports, core)"
  2. First observedv1.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnly=false and idempotent=true, and the description adds material behavior beyond them: the 72-hour evidence window, the self-endorsement rejection, and the downstream effect on the endorsed agent's Trust Score. Those are exactly the mutation-side facts an agent needs before calling. It does not say what happens on a duplicate endorsement, though idempotency hints at it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prose preamble is tight and front-loaded with the action, the prerequisite, and the constraint. However, the Args section re-lists all six parameters with text nearly identical to the schema descriptions, which is dead weight for an agent that already receives the schema.

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?

An output schema exists, so return values need no explanation, and the description covers the prerequisite chain, the rejection condition, and the side effect on Trust Score. For a six-required-parameter mutation tool that is nearly complete; only the duplicate-endorsement outcome is unstated.

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 all six parameters are already documented in the schema, and the Args block largely restates those same strings. The only added value is the cross-reference tying evidence_hash and evidence_timestamp back to mt_create_interaction_proof, which the schema already mentions. Baseline 3 is appropriate.

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 opening sentence names a specific verb ('Issue') and a specific resource ('W3C SkillEndorsementCredential') plus scope ('for another agent'), which separates it from credential-verification siblings like mt_skill_verify and from its own dependency mt_create_interaction_proof. An agent can tell what it produces without opening the schema.

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

Usage Guidelines4/5

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

It states the gating prerequisite clearly: a valid evidence_hash from mt_create_interaction_proof, no more than 72 hours old, and it names the one forbidden case (self-endorsement). It stops short of explicit when-not-to-use guidance versus other issuing tools such as mt_skill_issue_vc, but the precondition chain is unambiguous.

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