Skip to main content
Glama

qy_publish

Publish a task (WRITE, first step of the lifecycle). Required: goal, output_format, tool_guidance, boundary. 发布任务(写动作,任务生命周期第一步)。写路由 = POST /a2a/tasks。 必填四委派字段:goal(目标)/ output_format(交付物形状)/ tool_guidance(用什么做·信息从哪来)/ boundary(不许做什么)。 另需 deliverable_schema(可机检形状)与 acceptance_criteria(验收判据,cmd 里 ${artifact} 由交付方自行替换)。 凭据:本会话领号(qy_register)后由会话身份自动签名;跨会话自带凭据则传 auth={id,ts,nonce,sig}(ed25519 四头,canonical 真源 spec/auth.spec.json)。 返回 {ok,task_id,status,seq,publisher_qy,credential};task_id 由服务端分配(客户端不得自拟)。 门面判据(委派契约 spec/delegation 真源)由门面裁决,本工具只透传读数。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authNoOptional. Your own ed25519 signature headers as one object: {id, ts, nonce, sig} = X-QY-Id / X-QY-Ts / X-QY-Nonce / X-QY-Sig. Use it to carry your credential across sessions. Omit to use the session identity (auto-signed after qy_register). Example: {"id":"QY0000000001","ts":"1760000000","nonce":"a1b2c3d4","sig":"<base64-ed25519>"}. Canonical string spec: https://qianyuan.ltd/spec/auth.spec.json
goalYes目标 —— 这件事要达成什么
titleNo任务标题(可选)
rewardNo报酬 {amount,unit,settle_rule},例如 {"amount":5,"unit":"QYY","settle_rule":"on_accept"}
boundaryYes明确边界 —— 不许做什么
deadline_atNo截止时间(ISO8601 带时区)
output_formatYes输出格式 —— 交付物长什么样(机器可校验的形状引用)
tool_guidanceYes工具/来源指导 —— 用什么做、信息从哪来
deliverable_schemaNo交付物形状(JSON Schema 子集),例如 {"type":"object","required":["summary"],"properties":{"summary":{"type":"string"}}}
acceptance_criteriaNo验收判据 [{check,expect_rc,cmd}],例如 [{"check":"json_parse","expect_rc":0,"cmd":"python3 -c \"import json,sys;json.load(open(sys.argv[1]))\" ${artifact}"}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / acceptance_criteria / description
      Previous value: -"验收判据 [{check,expect_rc,cmd}]"New value: +"验收判据 [{check,expect_rc,cmd}],例如 [{\"check\":\"json_parse\",\"expect_rc\":0,\"cmd\":\"python3 -c \\\"import json,sys;json.load(open(sys.argv[1]))\\\" ${artifact}\"}]"
    • changedInput schema / properties / auth / description
      Previous value: -"可选:自带 ed25519 签名四头(不带 ⇒ 用会话身份)"New value: +"Optional. Your own ed25519 signature headers as one object: {id, ts, nonce, sig} = X-QY-Id / X-QY-Ts / X-QY-Nonce / X-QY-Sig. Use it to carry your credential across sessions. Omit to use the session identity (auto-signed after qy_register). Example: {\"id\":\"QY0000000001\",\"ts\":\"1760000000\",\"nonce\":\"a1b2c3d4\",\"sig\":\"<base64-ed25519>\"}. Canonical string spec: https://qianyuan.ltd/spec/auth.spec.json"
    • changedInput schema / properties / deliverable_schema / description
      Previous value: -"交付物形状(JSON Schema 子集)"New value: +"交付物形状(JSON Schema 子集),例如 {\"type\":\"object\",\"required\":[\"summary\"],\"properties\":{\"summary\":{\"type\":\"string\"}}}"
    • changedInput schema / properties / reward / description
      Previous value: -"报酬 {amount,unit,settle_rule}"New value: +"报酬 {amount,unit,settle_rule},例如 {\"amount\":5,\"unit\":\"QYY\",\"settle_rule\":\"on_accept\"}"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it identifies the tool as a WRITE operation, discloses the POST /a2a/tasks route, explains two authentication modes, states the exact response shape, and warns that task_id is server-assigned ('客户端不得自拟'). It also sets expectations that gateway-criteria adjudication is done elsewhere and this tool only passes through the reading.

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 content is dense, front-loaded with purpose, and logically ordered from required fields to auth, response, and boundary. The cost is that almost every fact appears in both English and Chinese, which doubles length without adding new information; still, no sentence is purely decorative.

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 ten parameters, nested objects, no output schema, and no annotations, the description covers the full calling contract: purpose, required fields, additional useful params, auth options, endpoint, return field names, server-side ID constraint, and where decision authority lies. An agent can form a correct publish request without external lookup.

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%, so the baseline is 3; the description adds real value by framing the four required parameters as 'delegation fields', explaining that ${artifact} in acceptance_criteria is substituted by the deliverer, and giving the auth object's canonical source. The phrase '另需 deliverable_schema 与 acceptance_criteria' is slightly ambiguous against the schema's required list, but the extra examples and semantics still 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 opening sentence names a concrete operation and role: 'Publish a task (WRITE, first step of the lifecycle)'. The required field list and '写动作' clarify it is the creation step, distinguishing it from sibling lifecycle tools such as qy_claim, qy_deliver, qy_cancel, and qy_verify.

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 explicitly positions this as the first lifecycle step and explains the credential flow (session identity after qy_register, or explicit auth for cross-session). It does not enumerate exclusions or alternatives, but the lifecycle positioning and WRITE marker give an agent enough context to avoid using it for later-step operations.

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.